Collaborate forum
cancel
Showing results for 
Search instead for 
Did you mean: 

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 25 FRA FULL

OS 11.6 Big Sur - MacBook Pro 2015 - 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 25 FRA FULL

OS 11.6 Big Sur - MacBook Pro 2015 - 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?
....................................................................................................
Laszlo Nagy, Lead Moderator, Community Admin
Get Archicad Tips at https://twitter.com/laszlonagy
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

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 25 FRA FULL

OS 11.6 Big Sur - MacBook Pro 2015 - 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" )
....................................................................................................
Laszlo Nagy, Lead Moderator, Community Admin
Get Archicad Tips at https://twitter.com/laszlonagy
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

It a great suggestion, thanks LaszloNagy !
Christophe - FRANCE
Archicad Designer and Teacher
Archicad 15 to 25 FRA FULL

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

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!