Vectorworks, Inc Employee Julian_Carr Posted February 4, 2023 Vectorworks, Inc Employee Share Posted February 4, 2023 It seems this should be easy, but regardless of what I have tried, I can't get either of the possible IF statements to work with data from an IFC record attached to a wall, to appear correctly in a graphic legend. Here is an example of the syntax I am using for both IF types: Yes@(#IfcWallStandardCase#.#Pset_WallCommon#.#IsExternal# = '1'):No #WS_IF((GETIFCPROPERTY('Pset_WallCommon'.'IsExternal') = '1'), 'Yes', 'No' )# In both cases it fails which can be seen in the attached file. I feel like I must be missing something? Wall Graphic Legend Issue.vwx Quote Link to comment
Pat Stanford Posted February 4, 2023 Share Posted February 4, 2023 GetIFCProperty seems to want a single string with the period between the instance and the property name. In a worksheet the following line works. =GetIFCPropety('PSet_WallCommon.IsExternal') For the straight data tag @ : If statement, there are can not be spaces in the logic statement in middle. I am not certain about the outside terms. You have spaces around your equal sign. Yes@(#IfcWallStandardCase#.#Pset_WallCommon#.#IsExternal#='1'):No Make those two changes and it appears to give proper text results. But the second wall style says it is not Load Bearing and not External even though the name says external. HTH 2 Quote Link to comment
Vectorworks, Inc Employee Julian_Carr Posted February 4, 2023 Author Vectorworks, Inc Employee Share Posted February 4, 2023 What would we do without you Pat? Thanks! 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.