builder

Window label

Recommended Posts

Can a window label be made to show the rough opening? Maybe with a macro?

Share this post


Link to post
Share on other sites

Do this to see what is available.

 

ct2.thumb.jpg.0a30336d8267beb91594d5eda0b3a8b9.jpg

 

Then this, or whatever info you want formatted however -- or change the default label.

 

ct1.thumb.jpg.95dbca7f582002a519436c207b561262.jpg

Share this post


Link to post
Share on other sites

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. 

Share this post


Link to post
Share on other sites

If you use a Window Schedule it's all there.  Then if you use the Schedule Callout as the Window Labels ..........

  • Upvote 1

Share this post


Link to post
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\"")

Share this post


Link to post
Share on other sites

Changed lines in red.

 

-----------

 

number = height + rough_opening_top + rough_opening_bottom

 

 

 

divisor = 1/16.to_f

 

 

 

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

 

 

 

feet = a[0]

 

 

 

inches = feet * 12 + a[1].floor

 

 

 

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

 

fraction = ""

 

 

 

else

 

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

 

end

 

 

 

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

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Member Statistics

    27489
    Total Members
    6254
    Most Online
    ChiefRochelle
    Newest Member
    ChiefRochelle
    Joined