Macro returning "units"


Doug_N
 Share

Recommended Posts

9 hours ago, ComputerMaster86 said:

%room.height.ceiling.convert_to("foot")%

This would just give you ceiling height in decimal feet. and to_foot works for this and I think its ceiling_elevation and even then you would want to factor in floor elevation for the case when you have a sunken floor.
This is a more appropriate inline code for your use case:
%(NumberFormatter.new.tap { |nf| nf.use_fractions = true; nf.unit = "'-\""; nf.denominator = 16 }.apply(room.ceiling_elevation - room.floor_elevation))%

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