justin-c Posted July 29, 2021 Share Posted July 29, 2021 I'm trying to figure out if there is a way to display room occupancy load, using a text color tag. For example if a room was 100 ft.² and the fire occupancy load is 7 ft.² per person able to take the (room area divided by 7) the formula would also need to round up or down to the nearest whole number Here is the "Callout Specification" dialog window Here is the "callout tag" with the formula, but I would like it to be modified so instead it show the red text or something similar Link to comment Share on other sites More sharing options...
Alaskan_Son Posted July 29, 2021 Share Posted July 29, 2021 %(room.internal_area/7).round% 1 Link to comment Share on other sites More sharing options...
justin-c Posted August 6, 2021 Author Share Posted August 6, 2021 This is the result I get when trying "Alaskan_son's" formula Thanks for the feedback maybe I'm doing something wrong Link to comment Share on other sites More sharing options...
rwdozier Posted August 6, 2021 Share Posted August 6, 2021 Maybe the OP is using CA X11? I am currently using CA X11 and get the same results as the OP. Where's your signature justin-c? Link to comment Share on other sites More sharing options...
rwdozier Posted August 9, 2021 Share Posted August 9, 2021 Hmm, what's the outcome on this? Link to comment Share on other sites More sharing options...
justin-c Posted August 9, 2021 Author Share Posted August 9, 2021 this is what i get i am running x10 on Mac Link to comment Share on other sites More sharing options...
Chopsaw Posted August 9, 2021 Share Posted August 9, 2021 Thanks for filling out your signature. Things were a lot different back in X10. First of all you will need to write your own user macro and I am not sure if you can make it work in a callout or not. I was able to get it to evaluate in the Room Label but possibly one of the guru's could explain how to do that in a callout or if it is possible. Link to comment Share on other sites More sharing options...
Alaskan_Son Posted August 9, 2021 Share Posted August 9, 2021 On 8/6/2021 at 11:40 AM, rwdozier said: Maybe the OP is using CA X11? I am currently using CA X11 and get the same results as the OP. Where's your signature justin-c? Had I seen the OP was using X10 at the time, I would have likely given a different answer. In X10 there's no easy way to get that information into a callout. In X11 (your version) it is possible but requires you create a custom User-Define Macro set to evaluated (owner context) and then paste my recommended code into the Value field... The simplified process of placing the code directly into the callout is only possible in X12 and X13. Link to comment Share on other sites More sharing options...
rwdozier Posted August 10, 2021 Share Posted August 10, 2021 Thanks Michael. Good to know. If I used CA more often, I'd move on up to X12 and X13. X11 meets all of my needs for now. I appreciate all the support from you folks! Link to comment Share on other sites More sharing options...
TylerSC Posted December 15, 2021 Share Posted December 15, 2021 Can anyone help me understand what I have wrong in this formula? It seems to be related to this thread. Link to comment Share on other sites More sharing options...
Chopsaw Posted December 15, 2021 Share Posted December 15, 2021 57 minutes ago, TylerSC said: Can anyone help me understand what I have wrong in this formula? It seems to be related to this thread. Give this a try: %(room.internal_area/35).round% The issue being that %room.area.internal% is a "Global Macro" that is not passed through Ruby. So no calculations can be preformed on that type of macro, but fortunately there is an equivalent NVP that gives the same value and can be used to do further calculations. %(room.internal_area% Link to comment Share on other sites More sharing options...
TylerSC Posted December 16, 2021 Share Posted December 16, 2021 Thanks, that did it. 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