amddrafting Posted August 29 Share Posted August 29 I'm using the script below to make ceiling height indicators in the framing plan and the current output is 9 FT-1 1/8 IN using this code... nf = NumberFormatter.new nf.unit = 'ft-in' nf.use_fractions = true nf.denominator = 8 nf.show_unit = true nf.apply(room.ceiling_elevation) I want it to output 9'-1 1/8" instead. Is it possible to do this without extensive coding? Link to comment Share on other sites More sharing options...
amddrafting Posted August 29 Author Share Posted August 29 Nevermind... just found this exact example in the Ruby Script Tutorial height = room.ceiling_elevation - room.floor_elevation nf = NumberFormatter.new nf.unit = "'-\"" # Hyphenated feet and inches nf.use_fractions = true nf.apply(height) 1 Link to comment Share on other sites More sharing options...
Charles Posted October 28 Share Posted October 28 On 8/29/2024 at 6:18 AM, amddrafting said: Nevermind... just found this exact example in the Ruby Script Tutorial height = room.ceiling_elevation - room.floor_elevation nf = NumberFormatter.new nf.unit = "'-\"" # Hyphenated feet and inches nf.use_fractions = true nf.apply(height) @amddrafting… I'm not too familiar with Ruby scripts. Could you let me know where to enter this data? Thanks in advance! Link to comment Share on other sites More sharing options...
robdyck Posted October 28 Share Posted October 28 @CharlesYou need to create a macro and enter the script. Go to Tools>Ruby Console>Tutorial>forward...to Topic 14 1 Link to comment Share on other sites More sharing options...
Charles Posted October 29 Share Posted October 29 6 hours ago, robdyck said: @CharlesYou need to create a macro and enter the script. Go to Tools>Ruby Console>Tutorial>forward...to Topic 14 Thank you, I'll give it a try. 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