Room SqFt Macro


justin-c
 Share

Recommended Posts

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

 

1855666868_ScreenShot2021-07-29at14_32_23.thumb.png.a25c4bc7d0706e438ed60f67026eeca1.png     

 

 

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

 

 

933069631_ScreenShot2021-07-29at14_25_41.thumb.png.a94654c8e74fbf4b1262418431b9b31d.png

Link to comment
Share on other sites

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.

 

image.thumb.png.7f9d20a551afb9b60795254574fa616f.pngimage.thumb.png.3e1d6f8feda101a47bfff975556ae58a.png   

image.thumb.png.cc6620007713b2b304ae2cf1d69b6be0.png

 

 

Link to comment
Share on other sites

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...

macro.thumb.png.025cf60bfadf28617a7bc0a9dd8baae7.png

 

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

  • 4 months later...
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share