We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2024-02-08 05:54 AM - last edited on 2024-02-11 07:27 PM by Laszlo Nagy
Well after decades using listing...one of the best but cubmersome features, I am trying to migrate stuff to using properties which the first couple of tuts...well it couldnt do it without fudging eg Room Illumination...but thats another issue (you CANNOT easily run priced BOQ from properties
I am simply trying to do the following but Im not getting something about the flow of datatypes and its certainly not obvious or friendly from my perspective but maybe its the siltation from listings
1. I choose area datatype and do a basic if statement to extract gross site area from a zone
Error!
Mark Wesse
AC26 | Win10 | Since v6.5r
Architerion - Architectural Systems Developer
Aurasphere - Acoustics
Building Biology - Human Compatible Architecture
"--- Every time...do it better ---"
Solved! Go to Solution.
2024-02-08 06:16 AM
HI.. YOU need to include area unit to 0.00 value.. e.g 0.00m2 , or 0.00ft2,etc in order to match all your variable types.
fr here :
2024-02-08 06:26 AM - edited 2024-02-08 06:27 AM
It is just a small thing but easy to miss - the units for all outcomes must be an area.
IF (Zone Category= "Site", Calculated Area, 0 m2 )
If the zone category is not "Site", then it must be 0m² and not just 0.
Barry.
2024-02-08 06:16 AM
HI.. YOU need to include area unit to 0.00 value.. e.g 0.00m2 , or 0.00ft2,etc in order to match all your variable types.
fr here :
2024-02-08 06:26 AM - edited 2024-02-08 06:27 AM
It is just a small thing but easy to miss - the units for all outcomes must be an area.
IF (Zone Category= "Site", Calculated Area, 0 m2 )
If the zone category is not "Site", then it must be 0m² and not just 0.
Barry.
2024-02-08 06:27 AM
Cheers
Never had to deal with supplying formatted datatypes...weird from previous ie GDL
so an appended eg 'm2' applies the formatting...interesting
I watched a bunch of GS vids on youtube and I dont recall seeing any of this...but I had on 1.5x
Thanks
Mark Wesse
AC26 | Win10 | Since v6.5r
Architerion - Architectural Systems Developer
Aurasphere - Acoustics
Building Biology - Human Compatible Architecture
"--- Every time...do it better ---"
2024-02-08 06:29 AM
You beat me to it!
Barry.
2024-02-08 06:29 AM
Thanks
ok but you dont have to cast the type though right? ie 0.0
I thought GS always used FP which is why FP = FP was always a no no
It would have been good for the vids to make this very easily missed point clear
Mark Wesse
AC26 | Win10 | Since v6.5r
Architerion - Architectural Systems Developer
Aurasphere - Acoustics
Building Biology - Human Compatible Architecture
"--- Every time...do it better ---"
2024-02-08 06:47 AM
let's just say GDL has its rules.. as well as expression-based properties has its own.
something an State has its own jurisdiction.. "i should adhere to their rules-- else i suffer"
I wonder why GS cudnt make a global ruling for this. 🙂 , nonetheless--pretty enjoyable to dabble on this.
2024-02-08 06:55 AM - last edited on 2024-02-11 07:39 PM by Laszlo Nagy
In reverse, when deriving a linear value ,e.g--say fr a volume unit data , u wud need to cancel unit area like>>"volume/m2" to make the result become a length value. OR say a unitless value = "volume/1M3" .. very tricky indeed.
2024-02-08 06:56 AM
FYI: To add to which everyone has already said: In any expression, Archicad first error checks the expression by first checking that all return values are applicable (classified) for the intended element type, then checks if all return units match that selected as the return unit. If any variable fails, the expression is deemed invalid. It does not matter if a variable can not be reached in the logic.
There are also occasions when you just want to return a number, as in returning a calculated currency value based on area or length, etc.. In that case, you simply divide out the final unit to return no units. i.e. (area m2/ 1 m2) -- returns just a number. Archicad does not have a currency unit -- so you have return a number or convert it to a string
2024-02-08 07:03 AM - edited 2024-02-08 07:05 AM
I think the frustration for me is that its still using all the formatting for strings etc and very familiar but STR is left out. To make is more confusing, it seems that its looking for the subscript as the cast identifier...even weirder
I can see properties could be very good but relying on the pipelines of data that are either still incomplete or dont work; re the yt room illumination example
It is just not even close to a listing replacement but it seems suitable for other kernel like piping
BUT
you can access any of it via GDL and STILL cant access project info other than wrapping it
Mark Wesse
AC26 | Win10 | Since v6.5r
Architerion - Architectural Systems Developer
Aurasphere - Acoustics
Building Biology - Human Compatible Architecture
"--- Every time...do it better ---"