Design forum
cancel
Showing results for
Did you mean:

## Expressions In Zone Stamp Rounded Number no Decimal

Beginner

Using the Zone Tool and Expressions to calculate parking bays..

Instead of 20,00 and 13,00 it should read 20 & 13.

i also would like to add text that says Bays at the end, to read 20 bays

I'd like the value on the zone stamp to not show decimal's is there a way to do this?

2 ACCEPTED SOLUTIONS
Solution

Make the "Street Parking" Property an "Integer" Data Type instead of a "Number" Data Type.

....................................................................................................
AMD Ryzen 1700X CPU, 48 GB RAM, NVidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), WIN10 PRO ENG, AC20-AC25
Loving Archicad since 1995
Solution

Actually, the whole thing can be achieved within a single Expression:

The exact Property Expression for copy-pasting it into your Property Expression Editor Dialog (triple-click to select it).

`CONCAT ( STR ( ROUNDDOWN ( ( {Property:General Parameters/Area} / 1 m2 ) / 12.5, 0 ), 0 ), " spaces" ) `

....................................................................................................
AMD Ryzen 1700X CPU, 48 GB RAM, NVidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), WIN10 PRO ENG, AC20-AC25
Loving Archicad since 1995
9 REPLIES 9
Solution

Make the "Street Parking" Property an "Integer" Data Type instead of a "Number" Data Type.

....................................................................................................
AMD Ryzen 1700X CPU, 48 GB RAM, NVidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), WIN10 PRO ENG, AC20-AC25
Loving Archicad since 1995

thank you..

what about adding text after, eg. 20 bays

Use the STR operator to convert your Integer to a String, and then use the CONCAT operator to create a single String out of the number and the " spaces" text.

....................................................................................................
AMD Ryzen 1700X CPU, 48 GB RAM, NVidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), WIN10 PRO ENG, AC20-AC25
Loving Archicad since 1995
Solution

Actually, the whole thing can be achieved within a single Expression:

The exact Property Expression for copy-pasting it into your Property Expression Editor Dialog (triple-click to select it).

`CONCAT ( STR ( ROUNDDOWN ( ( {Property:General Parameters/Area} / 1 m2 ) / 12.5, 0 ), 0 ), " spaces" ) `

....................................................................................................
AMD Ryzen 1700X CPU, 48 GB RAM, NVidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), WIN10 PRO ENG, AC20-AC25
Loving Archicad since 1995

You are Awesome Thank you so much!!

This was Great!

Beginner

CONCAT ( STR ( ROUNDDOWN ( ( {Property:General Parameters/Area} / 1 m2 ) / 12,5; 0 ); 0 ); " spaces" )
The Windows Version.

It is an operating system localization difference rather than an operating system version difference. I am on Windows too, but use another localization setting.

Your system is using the , character (comma) as a decimal character, while mine is using the . character (dot). Thus, in Property Expressions, your system needs to use the ; character between parameters, while my system needs to use the , character.

....................................................................................................
AMD Ryzen 1700X CPU, 48 GB RAM, NVidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), WIN10 PRO ENG, AC20-AC25
Loving Archicad since 1995

I see, thank you..

Latest solutions

Most liked posts