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

Layers in expressions

RandyC
Booster
Can an expression be restricted to a specific layer ? if so any idea how ?

Thanks , Randy
ArchiCAD 4.5 --- 25 , Win 10 , dual monitors, 64 gb ram,Nvidia GeforceRTX 2080 TI, I-9
5 REPLIES 5

poco2013
Advisor
Yes -- Simply include the property 'layer' within your IF statement as in: IF ( Logical, ValueIfTrue, ValueIfFalse )


Layer is listed under general parameters and is available for all elements.
Gerry

Windows 10 - Visual Studio 2019; ArchiCAD 25

RandyC
Booster
Thanks poco2013 for the insight however I think I am not doing the expression correctly
I am trying to get the area of all zones on the "floor area" layer - can you show me my error ?
Thanks , Randy
ArchiCAD 4.5 --- 25 , Win 10 , dual monitors, 64 gb ram,Nvidia GeforceRTX 2080 TI, I-9

poco2013
Advisor
Your using a assignment -- try a conditional like:

IF ( CONTAINS ( "A - Zones - Room.3D", {Property:General Parameters/Layer}, FALSE ), {Property:Zone/Measured Area}, 0 ft2 )

EDIT: Note all returns must have the same units
Gerry

Windows 10 - Visual Studio 2019; ArchiCAD 25

RandyC
Booster
Gerry you seem to have expressions down pat -- I however am lacking
I did get a result with :

IF ( CONTAINS ( "Floor Area", {Property:General Parameters/Layer}, FALSE ), {Property:Zone/Measured Area}, 0 ft2 )

when I select a zone it shows as working but
when I introduce it to a schedule it only returns "0"

Thank you for your help ,
Randy
ArchiCAD 4.5 --- 25 , Win 10 , dual monitors, 64 gb ram,Nvidia GeforceRTX 2080 TI, I-9

poco2013
Advisor
If its returning 0, probably the layer name is somehow mismatched as it is returning the false statement

Double check by first selecting your zone then open property manager, select your property, click on Evaluate in your property manager to see what is returned and then troubleshoot there.

Make sure you have set the classifications properly both for the property and the zone.
Gerry

Windows 10 - Visual Studio 2019; ArchiCAD 25

Didn't find the answer? Start a new discussion

Labels

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!