OIP field values


Joe_Carrick
 Share

Recommended Posts

OIP field values (even calculated or macro derived) can be displayed in a schedule.  However, I'm not able to use them in other locations (text or macros).  Does anyone know how to extract the values of a schedule row/column or the specific OIP field ?

Link to comment
Share on other sites

Posted (edited)

No, I use the folloowing:

  • referenced ? obj =referenced : obj= owner

then all NVPs are per obj.

 

That way my macros always work depending on the context..

Edited by Joe_Carrick
  • Like 1
Link to comment
Share on other sites

I use them in macros: custom_fields below.

 isElevationReference is an OIP but these are hand inputted, are you looking for results from a calc/macro within an OIP?

 

 

if custom_fields["isElevationReference"] == "Y"

...

 

 

or are you talking about something else?

Edited by SHCanada2
Link to comment
Share on other sites

Posted (edited)

So I have the following in an OIP custom_field named "supported floors"

  • ($TotalFloors + owner.floor_number + 1)
  • which returns:
    • 1 for the top floor
    • 2 for the next floor down
    • etc.
  • those values are displayed correctly in a schedule for the custom_field["supported floors"]

But when I create a user macro for an object and try to get the value of that field it simply returns 

  • ($TotalFloors + owner.floor_number + 1)

 

Edited by Joe_Carrick
Link to comment
Share on other sites

I thought maybe that's what you were after. I checked mine and I don't have anything like that. I suppose you could assign to a global in or from the oip, but then you are having to spend a bunch of effort managing that , which you are probably trying to avoid in the first place

Link to comment
Share on other sites

Posted (edited)

I got it to work.  It was a problem with the data assignment.  I just had to change it to:

  • ($TotalFloors - floor_number + 1)
  • it seems to be important to have the spaces on either side of the "+" and "-" signs
Edited by Joe_Carrick
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share