dshall Posted July 29, 2016 Share Posted July 29, 2016 Does anybody know how to limit the decimal spaces for areas? I am not sure if my landscaper needs to put in 326.3468524 s.f. of sod. I think 330 sf would be accurate enough. bbb minimize decimal numbers 1.plan Link to comment Share on other sites More sharing options...
Joe_Carrick Posted July 29, 2016 Share Posted July 29, 2016 Only by using a user macro instead of the one Chief provides. This has been discussed before and the macro posted in another thread. Search the forum Link to comment Share on other sites More sharing options...
kMoquin Posted July 29, 2016 Share Posted July 29, 2016 Yes! I'd love a setting for this. The builder asked me to confirm that we needed 85.4541016 square feet of tile for the bathroom. I asked him if my estimate was not accurate enough. Link to comment Share on other sites More sharing options...
HumbleChief Posted July 29, 2016 Share Posted July 29, 2016 My question is, how did this ever get out off the software engineer's desk and in to the program? And then remain in the program after a couple of updates? Really strange thinking IMO. 1 Link to comment Share on other sites More sharing options...
Joe_Carrick Posted July 29, 2016 Share Posted July 29, 2016 OK guys, Create an "Owner Context" - "Evaluated" macro named "Area Rounded" with the following contents: x = area.round(0) then use that macro in the Polyline Label. I agree that 7 decimal places is too much and Chief should change that to 2-3 decimal places but with a user macro you have control. In addition, you actually get the numerical value so it's possible to do math calculations within the macro. Link to comment Share on other sites More sharing options...
dshall Posted July 29, 2016 Author Share Posted July 29, 2016 ...... ....Create an "Owner Context" - "Evaluated" macro named "Area Rounded" with the following contents: x = area.round(0) then use that macro in the Polyline Label. .... Joe, I wish I new how to do what you are recommending, but I don't. i am not a programmer and I do not have time to learn. I am looking for the answer. I would like to hire you in about 2 weeks to get this crap worked out and then I will share in a video with others. I wish the designers and the programmers could stick to what they do best. Link to comment Share on other sites More sharing options...
dshall Posted July 29, 2016 Author Share Posted July 29, 2016 My question is, how did this ever get out off the software engineer's desk and in to the program? And then remain in the program after a couple of updates? Really strange thinking IMO. I don't get it either. Link to comment Share on other sites More sharing options...
dshall Posted July 29, 2016 Author Share Posted July 29, 2016 Yes! I'd love a setting for this. The builder asked me to confirm that we needed 85.4541016 square feet of tile for the bathroom. I asked him if my estimate was not accurate enough. LOL, I am going through this now with a site analysis of pervious and impervious areas. I do not need any decimal spaces, I am not a mechanical engineer. The closest tolerance I am expected is to the whole number. Link to comment Share on other sites More sharing options...
kMoquin Posted July 29, 2016 Share Posted July 29, 2016 ...... Joe, I wish I new how to do what you are recommending, but I don't. DSH just paste the text Joe provided in to the "Value" of the macro and select "Owner Object" from the context drop down. Thanks Joe !!!! Link to comment Share on other sites More sharing options...
kMoquin Posted July 29, 2016 Share Posted July 29, 2016 and just change the (0) to the number of decimal places you want i.e. x = area.round(1) gives you x.y as the output x = area.round(2) gives you x.yy as the output Link to comment Share on other sites More sharing options...
dshall Posted July 29, 2016 Author Share Posted July 29, 2016 DSH just paste the text Joe provided in to the "Value" of the macro and select "Owner Object" from the context drop down. Thanks Joe !!!! Would it be possible to show a picture of the macro with Joe's fix shown and a pic of where I am to find this macro? Thanks. Link to comment Share on other sites More sharing options...
HumbleChief Posted July 29, 2016 Share Posted July 29, 2016 Scott, see if this helps Link to comment Share on other sites More sharing options...
kMoquin Posted July 29, 2016 Share Posted July 29, 2016 here you go The macro "Area Rounded" is one I created by clicking the "New" button in the DBX Link to comment Share on other sites More sharing options...
Joe_Carrick Posted July 29, 2016 Share Posted July 29, 2016 Would it be possible to show a picture of the macro with Joe's fix shown and a pic of where I am to find this macro? Thanks. Here are pics. Link to comment Share on other sites More sharing options...
HumbleChief Posted July 29, 2016 Share Posted July 29, 2016 Here are pics. Joe you're showing area.round(0) instead of x=area.round(0) is the x= needed? Link to comment Share on other sites More sharing options...
Joe_Carrick Posted July 29, 2016 Share Posted July 29, 2016 Scott, You might want to look at the June2016 Macro of the Month - Area_Perimeter_Volume since it already does all three (2 decimal places) Link to comment Share on other sites More sharing options...
Joe_Carrick Posted July 29, 2016 Share Posted July 29, 2016 Joe you're showing area.round(0) instead of x=area.round(0) is the x= needed? only if you wanted to perform additional calculations. A macro returns the value of the last line. So if you wanted to multiply by some other value you could do this: x = area.round(0) x/3 which would display 1/3 of the area but that wouldn't be rounded. If you wanted the result rounded you would change it to: x = area (x/3).round(0) or you could write the macro as (area/3).round(0) Link to comment Share on other sites More sharing options...
HumbleChief Posted July 29, 2016 Share Posted July 29, 2016 only if you wanted to perform additional calculations. A macro returns the value of the last line. So if you wanted to multiply by some other value you could do this: x = area.round(0) x/3 which would display 1/3 of the area but that wouldn't be rounded. If you wanted the result rounded you would change it to: x = area (x/3).round(0) or you could write the macro as (area/3).round(0) Thx Link to comment Share on other sites More sharing options...
Joe_Carrick Posted July 29, 2016 Share Posted July 29, 2016 BTW, some Polyline based objects (Roads, Driveways, Sidewalks, Slabs, Countertops, etc) have Default Labels that you can assign a macro to so that any time you create one of those objects it is automatically labeled. All of those have the area attribute. Link to comment Share on other sites More sharing options...
HumbleChief Posted July 29, 2016 Share Posted July 29, 2016 BTW, some Polyline based objects (Roads, Driveways, Sidewalks, Slabs, Countertops, etc) have Default Labels that you can assign a macro to .... Darned if I can find where that default setting might be... Link to comment Share on other sites More sharing options...
Joe_Carrick Posted July 29, 2016 Share Posted July 29, 2016 Sorry, not for Slabs or Countertops but check this Link to comment Share on other sites More sharing options...
DRAWZILLA Posted July 29, 2016 Share Posted July 29, 2016 if you have Joe's site package, it does it all for you automatically. Link to comment Share on other sites More sharing options...
SNestor Posted July 29, 2016 Share Posted July 29, 2016 I tried making this macro...rounded to two places...and the macro works fine...but, I get an evaluation error. Why would the macro work perfectly but generate an evaluation error? Link to comment Share on other sites More sharing options...
johnny Posted July 29, 2016 Share Posted July 29, 2016 My question is, how did this ever get out off the software engineer's desk and in to the program? And then remain in the program after a couple of updates? Really strange thinking IMO. ^^^^this. its crazy since it would probably take all of 2 min. to fix for them. Link to comment Share on other sites More sharing options...
dshall Posted July 29, 2016 Author Share Posted July 29, 2016 Thanks guys, I finally got it. Some years I am a little slow on the uptake. 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