2022-07-14 06:22 AM
Hi,
Quick one, I think. How do I use a number from an option set parameter as a divisor to an equation?
For example, I'm trying to get the measured area (from zone) divided by total BUA (option set parameter) and multiply that by 100 to get the percentage.
I hope my query is clear.
Thank you!
2022-07-14 07:11 AM - edited 2022-07-14 07:11 AM
I am not sure if you can directly.
Although you can type a number in an option set, I think it is treated as a string.
So you may need to convert this in a expression using STRTONUM ( "Text" )
Barry.
2022-07-18 08:52 AM - edited 2022-07-18 08:55 AM
Hi Barry,
I was able to reach out to a friend who assisted me in this. This the expression that we formulated to get the calculation I wanted.
Measured Area / ( ( ( STRONUM ( VILLA BUA ) * 1 m2 ) ) + ( ( STRTONUM ( TERRACE BUA ) * 1 m2 ) ) ) * 100
Hope this would help others too.
Regards,
John Carlos
2022-08-19 09:19 AM
The moral of this story is that you can do anything in Archicad if you know how
BUT
its far too complicated !!!!