Jump to content
Developer Wiki and Function Reference Links ×

Reporting IFC Value in Graphic Legend with IF Statement


Recommended Posts

  • Vectorworks, Inc Employee

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

Link to comment

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

  • Like 2
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...