I am looking for a way to automatically round off the values of dimensions. One can set precision from none to many decimal places, though, no rounding seems to be available as far as I was able to find out.
Any suggestions, or does it simply seem like a v6 wishlist candidate?
P.S. For anyone questioning my reasons, in architectural drawings sometimes we need to have less precise dimensions than single milimeter units, especially when working with digital survey backgrounds the geometry is a little bit too âuntidyâ to leave the wild numbers as measured.
Setting the precision in the dimension style should round to the nearest digit according to standard rounding rules⌠or did I not understand what you want?
I am aware of the precision settings, what I am looking for is to make it work not only for decimal places [0.0, 0.00, 0.000âŚ] but also for the tens, hundreds, etc.
What works now:
An object dimension of, say, 5364.456 could be currently set to display as:
5364 or 5364.4 or 5364.46 or 5364.456
What I am looking for is to display it as:
5360 or 5400 or 5000
Ah, OK, I donât know of a standard rounding function that does that⌠all I could offer is a script to convert existing dimension texts to rounded that wayâŚ
Such script might be useful till weâd get it implemented into dim styles. Though, it would be great if the script would be revertible, to allow the dimensions work the original way if needed.
If that is what you really want, of course I will not stop you
In the case you describe, and if it were up to me, Iâd want it to display as either 5 m or 5.4 m, something you can do with todayâs system even if the document units are set to mm. But, by all meansâŚ
OK, hereâs a script to try. This should left round dimensions as you like, you can pre- or post- select multiple dimension objects. For number of places, 0 (minimum entry) will just round to the nearest integer, 1 to the tens place, 2 to the hundreds place etc. It will never round to more than the number of digits the dimension has - if the dimension is 123.456 and you specify 5 as the number of places, it will round to 100, not 0. It remembers the last used value in the same session.
To ârevertâ modified dimensions, just select them and go into the Properties box and press the âdefaultâ button.
I can see your point, wim, though, according to our standards I can use (and am actually using for a long time already) this approach in limited set of cases.
Itâs relatively easy to add that for the units place, but if I have to do it globally, it will need a different approach - I think I would have to take the dimension number apart at each place and perform the operation as if it were a number between 0 and 10 then put the number back together.
Pascal, I canât find this wish in youtrack. I searched for the URL of this discussion and didnât find it. Can you please post links to the bugs you add here on Discourse, and also link back to the discussion from YouTrack? That will make finding the discussion and contacting the original poster much easier.