JKEdmo Posted Wednesday at 06:29 PM Share Posted Wednesday at 06:29 PM Good morning, I thought I'd get fancy (i.e. try to learn something new) and have my plan marker report back the room subfloor elevation instead of typing in manual text like I always do. Result: It reports back in inches. Anybody know how to get this to report back in feet + inches? You can point me to a forum thread or video if easier. Was not sure what key phrase to search for. Thanks in advance, Jim Link to comment Share on other sites More sharing options...
SHCanada2 Posted Wednesday at 09:30 PM Share Posted Wednesday at 09:30 PM search for "All words" macro feet inches I've seen a few posts on it. I think I saw one by AlaskanSon, so you could also try search by user Link to comment Share on other sites More sharing options...
PitMan71 Posted Wednesday at 09:50 PM Share Posted Wednesday at 09:50 PM Maybe this will help..... Paste this in your field..... Got it from https://www.rabbittdesign.net/chief-architect-number-formatter?fbclid=IwY2xjawKu2cFleHRuA2FlbQIxMABicmlkETFucXhGakFQc1pHbTVuekF4AR4_rxL6IWqpdEPAKw-xx_NCN8xLMyYJVIkI_rQHdIXYTin8CO2rvUgo9KwIiQ_aem_K-yohSgoiUU1nN4wwzjB6A % (NumberFormatter.new.tap { |nf| nf.use_fractions = true; nf.denominator = 16; nf.unit = "'-\""; nf.show_unit = true; nf.thousands_separator = ','; nf.show_trailing_zeros = true; nf.reduce_fractions = :gcd }.apply(room.floor_elevation))% Link to comment Share on other sites More sharing options...
PitMan71 Posted Wednesday at 09:52 PM Share Posted Wednesday at 09:52 PM This is courtesy of @Renerabbitt .... He created it for us macro common folk. If it works for you, be sure and give him some kudos. Link to comment Share on other sites More sharing options...
JKEdmo Posted Wednesday at 11:36 PM Author Share Posted Wednesday at 11:36 PM 2 hours ago, SHCanada2 said: search for "All words" macro feet inches I've seen a few posts on it. I think I saw one by AlaskanSon, so you could also try search by user Thank you. Will do. Link to comment Share on other sites More sharing options...
JKEdmo Posted Wednesday at 11:37 PM Author Share Posted Wednesday at 11:37 PM 1 hour ago, PitMan71 said: Maybe this will help..... Paste this in your field..... Got it from https://www.rabbittdesign.net/chief-architect-number-formatter?fbclid=IwY2xjawKu2cFleHRuA2FlbQIxMABicmlkETFucXhGakFQc1pHbTVuekF4AR4_rxL6IWqpdEPAKw-xx_NCN8xLMyYJVIkI_rQHdIXYTin8CO2rvUgo9KwIiQ_aem_K-yohSgoiUU1nN4wwzjB6A % (NumberFormatter.new.tap { |nf| nf.use_fractions = true; nf.denominator = 16; nf.unit = "'-\""; nf.show_unit = true; nf.thousands_separator = ','; nf.show_trailing_zeros = true; nf.reduce_fractions = :gcd }.apply(room.floor_elevation))% Thanks. I'll take a look at this. Started reading a little in the manual about Ruby. A little hard to wrap my brain around! Jim Link to comment Share on other sites More sharing options...
PitMan71 Posted 17 hours ago Share Posted 17 hours ago 15 hours ago, JKEdmo said: A little hard to wrap my brain around! it definitely is.... AND I have done programming. It is confusing..... There is logic to it, but I haven't been able to figure it out yet. It is anything but straight forward. I get that it allows us to customize the program to our specific needs, but the learning curve is too high for folks that just draw. This will rub some folks the wrong way, but I am not an advocate of having to pay someone to do things that I should be able to do. In other words it should be easier to customize simple things such as what you are trying to do. I appreciate folks like Rene that share tools to help bridge that gap such as the one I shared. Good luck bro. Link to comment Share on other sites More sharing options...
Solution DBCooper Posted 10 hours ago Solution Share Posted 10 hours ago Try using this built in macro instead: %room.floor_elevation.to_s("'-\"")% Link to comment Share on other sites More sharing options...
joey_martin Posted 9 hours ago Share Posted 9 hours ago #EVALUATION ERROR# Story of my life with Macros.... Link to comment Share on other sites More sharing options...
PitMan71 Posted 9 hours ago Share Posted 9 hours ago 1 hour ago, DBCooper said: Try using this built in macro instead: That's a way shorter version..... It worked for me. inches are in decimal format though. Link to comment Share on other sites More sharing options...
JKEdmo Posted 8 hours ago Author Share Posted 8 hours ago 1 hour ago, DBCooper said: Try using this built in macro instead: %room.floor_elevation.to_s("'-\"")% Thanks. It worked! Link to comment Share on other sites More sharing options...
JKEdmo Posted 8 hours ago Author Share Posted 8 hours ago 8 hours ago, PitMan71 said: AND I have done programming. The last programming I did was a Fortran class at the local JC in (I think) 1985. It's been a while. In case you didn't know, there's a fun Ruby tutorial built in to the Chief Ruby console. Just hit the tutorial button. It happens within the console, so is a lot like interacting with a 1970s terminal hooked up to a mainframe. Anyways, I got up to chapter 15. Give it a try if you haven't yet. Link to comment Share on other sites More sharing options...
DBCooper Posted 8 hours ago Share Posted 8 hours ago Quote inches are in decimal format though. Yeah, it would be nice if it was inches in fractions but I don't think there is an easy way to do that. It think it is easy to round it to the nearest inch but that might not be accurate enough. @Alaskan_Sonmight know a better way but I am sure you can do it with custom macros. I can live with the decimal inches just so I don't have to learn macros. Quote #EVALUATION ERROR# Might depend on where you are using it or might just be a typo. I don't think the "room" macros will work right in elevation views. 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