BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

Collaboration with other software
About model and data exchange with 3rd party solutions: Revit, Solibri, dRofus, Bluebeam, structural analysis solutions, and IFC, BCF and DXF/DWG-based exchange, etc.

MROUND measured area

Hello,

I wish to create a personalized property to get rounded measured area like this :
12,45m2 --> 12,5m2
12,12m2 --> 12,0m2

I tried with MROUND expression who called measured area but without success.
How do you do?
Christophe - FRANCE
Archicad Designer and Teacher
Archicad 15 to 27 FRA FULL

OS 11.6 Big Sur - MacBook Pro 2017 - 16Go RAM
"Quality is never an accident ; it's always the result of an intelligent effort" John Ruskin
5 REPLIES 5
I have found I share...


1° - Transform Measured Area into an Expression which is called "SM01"
STRCALCUNIT ( Mesured Area )

2° - Transform SM01 into a number which is called "SM02"
STRTONUM ( SM01 )

3° - Round SM02
MROUND ( SM02 ; 0,5 )


Or...

MROUND ( STRTONUM ( STRCALCUNIT ( Measured Area ) ); 0,5 )
Christophe - FRANCE
Archicad Designer and Teacher
Archicad 15 to 27 FRA FULL

OS 11.6 Big Sur - MacBook Pro 2017 - 16Go RAM
"Quality is never an accident ; it's always the result of an intelligent effort" John Ruskin
Laszlo Nagy
Community Admin
Community Admin
Just to make everything clear:
Do you do this with the "Measured Area" of Zones?
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
LaszloNagy wrote:
Just to make everything clear:
Do you do this with the "Measured Area" of Zones?
Yes absolutely
I do not know about "Measured Area" of other kind of element.
Christophe - FRANCE
Archicad Designer and Teacher
Archicad 15 to 27 FRA FULL

OS 11.6 Big Sur - MacBook Pro 2017 - 16Go RAM
"Quality is never an accident ; it's always the result of an intelligent effort" John Ruskin
Laszlo Nagy
Community Admin
Community Admin
OK, I get it.

You could take this further, and convert it to a String to display the unit as well.
The below example converts the rounded value to 3 decimal place accuracy and adds "AR: " to its beginning, and " m2" to its end. The resulting string type Property can be displayed in both Zone Stamps and Schedules:
CONCAT ( "AR: ", STR ( MROUND ( STRTONUM ( STRCALCUNIT ( {Property:Zone/Measured Area} ) ), 0.5 ), 3 ), " m2" )
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
It a great suggestion, thanks LaszloNagy !
Christophe - FRANCE
Archicad Designer and Teacher
Archicad 15 to 27 FRA FULL

OS 11.6 Big Sur - MacBook Pro 2017 - 16Go RAM
"Quality is never an accident ; it's always the result of an intelligent effort" John Ruskin
Learn and get certified!