Window label


Bob-Roraback
 Share

Recommended Posts

Absolutely possible.  I sent you a PM, but the short answer is that you would need to use one or more custom text macros that were formatted to your liking.  The best solution would depend on a number of factors but in essence, you would take the attributes available for a window (height, width, and rough opening settings in this case), add write a bit of code that would add those values together as necessary and then display those values in the desired format. 

Link to comment
Share on other sites

Thank you Eric, Joe and Michael. I have made the macro but I need help changing it to read only inches please.

This is what I wrote, I did the same for the width.   Thank you for any help, Bob

number = height + rough_opening_top + rough_opening_bottom

 

divisor = 1/16.to_f

 

a = ((number/divisor).round*divisor).divmod(12)

 

feet = a[0]

 

inches = a[1].floor

 

if a[1].modulo(1) == 0

fraction = ""

 

else

fraction = " #{a[1].modulo(1).rationalize}"

end

 

"#{feet}'-#{inches}#{fraction}\"".reverse.chomp("-'0").chomp(" 0").reverse.chomp("-0\"")

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