Framing Label- converting to feet/inches instead of inches. Need a macro formula


paulsullins
 Share

Recommended Posts

If you want it to the nearest inch, you can use "%length.round()%".

 

if you want it to the nearest foot, you can use "%length.to_ft.round()%".

 

If you want it shown in feet and inches but rounded to the nearest inch, you can use "%length.round().to_s("'-\"")%".

 

  • Like 1
Link to comment
Share on other sites

3 hours ago, paulsullins said:

The only Macro I need for is to really round it up to the nearest foot for the framers. 

%length.to_ft.ceil%'

but you really should tell them what size & type members:

  • I-Joists - size and #
  • Lumber - nominal size, material, pressure treated
  • Steel Channels
  • etc

 

That's all automatic with my macros.  It even indicates if they need to be "PT" (pressure treated).

 

Edited by Joe_Carrick
Link to comment
Share on other sites

I like Joe's suggestion of using "ceil" instead of "round" since I believe this will always round up instead of rounding down when you are less than 1/2 a unit.  Wouldn't want your framers to cut things off too short.

 

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