Gr8trim4u Posted January 17, 2018 Share Posted January 17, 2018 Good morning all. I need some assistance in formatting my label dimensions. I want to go from this to feet and inches(not decimal) I have searched the videos and no avail. TIA Anthony Hayes Link to comment Share on other sites More sharing options...
Gr8trim4u Posted January 17, 2018 Author Share Posted January 17, 2018 From decimal to x' y 1/2" my default is in decimal inches. I cannot find the DBX to change it. Link to comment Share on other sites More sharing options...
Gr8trim4u Posted January 17, 2018 Author Share Posted January 17, 2018 Thank You Eric!!!! I will incorporate!!! Seems there should be a setting that allows you to change the format without a macro. Link to comment Share on other sites More sharing options...
Kbird1 Posted January 17, 2018 Share Posted January 17, 2018 There is ....Eric simply misunderstood what you were trying to do, cos I know he knows this....... change the Primary Format to fractions not decimal places after making it Feet and inches ie: '-" Link to comment Share on other sites More sharing options...
Gr8trim4u Posted January 17, 2018 Author Share Posted January 17, 2018 See the attached photo Mick's Suggestion. I am trying to show the Floor joist with lengths assigned. I am till getting a decimal return. Link to comment Share on other sites More sharing options...
Joe_Carrick Posted January 17, 2018 Share Posted January 17, 2018 That formatting is only for Dimensions, not for Object Labels. It requires a custom macro to modify the Labels to ft.in. I sell a "Framing Labels" macro package that will do that. The price for that package is $50.00 and it will Label any Framing Member (Rafters, Joists, Beams, Studs, etc.) Link to comment Share on other sites More sharing options...
Gr8trim4u Posted January 17, 2018 Author Share Posted January 17, 2018 Joseph Will it work on x10? Thx for the heads up. Anthony Link to comment Share on other sites More sharing options...
Kbird1 Posted January 17, 2018 Share Posted January 17, 2018 It will show inches for sure but I think you have unchecked the "default dimensions" box under label , so still have decimals showing.... Link to comment Share on other sites More sharing options...
Kbird1 Posted January 17, 2018 Share Posted January 17, 2018 2 hours ago, solver said: Mick, I imagine you are correct. I thought this was changing a single object, not changing a global setting. ***EDIT Nope apparently not you were right your code above works (thx) as he wants the Joist label in Ft-Inch , my way only gives inches by the looks of it... * make below the last line above and it will show the Type of Lumber or TJI as well ...you could also add depth x height if desired s = "#{array[0]}" + "' " + "#{f(array[1])}" +'"' + "' " + " " + type_name M. Link to comment Share on other sites More sharing options...
Joe_Carrick Posted January 17, 2018 Share Posted January 17, 2018 44 minutes ago, Gr8trim4u said: Joseph Will it work on x10? Thx for the heads up. Anthony Of course. Macros are for the most part version independent. Link to comment Share on other sites More sharing options...
Chrisb222 Posted January 17, 2018 Share Posted January 17, 2018 3 hours ago, solver said: ------------ # Function to convert 1.125 to 1 1/8 # rounds to nearest 16th def f(i) if i == 0 then inches=0 return "#{inches}" else inches = i.floor frac = (i.remainder(inches)*16).round.quo(16) case when frac == 1 return "#{inches + 1}" when frac == 0 return "#{inches}" else return "#{inches} #{frac}" #.gsub!(" ",".") end end end array = length.divmod(12) s = "#{array[0]}" + "' " + "#{f(array[1])}" +'"' Wow. While it's fantastic that there are people here willing to help figure this stuff out, I'm dismayed that it requires such arduous programming to do things that should be easily accessed by the average user. Does CA actually think contractors in the field are working with decimal inches?? This program should have easily-accessed ft-in designation for EVERYTHING... OOB. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now