Joe_Carrick Posted June 21 Share Posted June 21 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 More sharing options...
ChristianA Posted June 21 Share Posted June 21 Are you using "referenced" vs "owner" in your script? Link to comment Share on other sites More sharing options...
Joe_Carrick Posted June 21 Author Share Posted June 21 (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 June 21 by Joe_Carrick 1 Link to comment Share on other sites More sharing options...
SHCanada2 Posted Sunday at 04:15 PM Share Posted Sunday at 04:15 PM (edited) 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 Sunday at 04:16 PM by SHCanada2 Link to comment Share on other sites More sharing options...
Joe_Carrick Posted Sunday at 05:24 PM Author Share Posted Sunday at 05:24 PM (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 Sunday at 05:26 PM by Joe_Carrick Link to comment Share on other sites More sharing options...
SHCanada2 Posted Sunday at 09:23 PM Share Posted Sunday at 09:23 PM 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 More sharing options...
Joe_Carrick Posted Sunday at 09:53 PM Author Share Posted Sunday at 09:53 PM (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 Monday at 03:01 AM by Joe_Carrick Link to comment Share on other sites More sharing options...
SHCanada2 Posted Monday at 05:45 PM Share Posted Monday at 05:45 PM 19 hours ago, Joe_Carrick said: it seems to be important to have the spaces on either side of the "+" and "-" signs I've seen this before and I thought I was just going crazy. good to know it was not me. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now