Elevation Marker Formatting Question


JKEdmo
 Share

Go to solution Solved by DBCooper,

Recommended Posts

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.

 

image.thumb.png.58d1c49d9090e4fff865a63d158f4b22.png

 

Result:

 

image.thumb.png.30cc8fc2fcfe6fd7149879a23a8ab926.png

 

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

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

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

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share