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...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now