HOW TO CREATE A FIELD FOR GETING DIMENSION ROUND UP OR ROUND DOWN

HOW TO CREATE A FIELD FOR GETING DIMENSION ROUND UP OR ROUND DOWN

skchui6159
Advocate Advocate
817 Views
8 Replies
Message 1 of 9

HOW TO CREATE A FIELD FOR GETING DIMENSION ROUND UP OR ROUND DOWN

skchui6159
Advocate
Advocate

HELLO EVERYONE, I want to ask the following issue.

Before:

skchui6159_0-1725335848930.png

After:

skchui6159_2-1725335897146.png

Can I use the text override using formula to solve? Measurement>=7.5 then round up to 10

Measurement>=2.5 round to 5

Measurement<2.5 round down, Measurement<7.5 round down to 5.

Because I have no field on AutoCAD to roundup/rounddown.

skchui6159_3-1725335936662.png

 

0 Likes
Accepted solutions (2)
818 Views
8 Replies
Replies (8)
Message 2 of 9

Moshe-A
Mentor
Mentor

@skchui6159 hi,

 

explore dimvar DIMRND  (it's all about good dimstyle settings 😀)

 

Moshe

 

0 Likes
Message 3 of 9

skchui6159
Advocate
Advocate

I know that if I set the dimension style, it can be round up/down. However, the real dimension can not be know if you are not selecting the properties of that dimension by specify.

0 Likes
Message 4 of 9

Moshe-A
Mentor
Mentor

@skchui6159 ,

 

your first request was to round a dimension line - right?!

 

What you are asking now is to show the rounded measurement but also keep the real value?

and where do you plan to store that?

 

 

 

 

 

 

 

0 Likes
Message 5 of 9

Kent1Cooper
Consultant
Consultant

Is the idea that you want the "APPROX." suffix on the dimension text only if the displayed value has been rounded off, but not if the actual value is a clean multiple of 5?  [Not that I have any idea how to do that, but at least so we know what you're looing for....]

Kent Cooper, AIA
0 Likes
Message 6 of 9

Kent1Cooper
Consultant
Consultant
Accepted solution

@skchui6159 wrote:

I know that if I set the dimension style, it can be round up/down. However, the real dimension can not be know if you are not selecting the properties of that dimension by specify.


How would you want to "know" the real dimension other than by looking in the Properties?  The actual measurement is shown there, un-rounded, so if the Dimension Style has it rounded, you can see the difference between the rounded version shown in the Dimension itself, and the actual measurement in the Properties.  In any case, presumably there would need to be a selection of the Dimension involved, so what easier way can there be to see the actual measurement?

This is another way to find out, but I don't see how it's any better:
(cdr (assoc 42 (entget (car (entsel "\nSelect Dimension for its actual un-rounded measurement: ")))))

It does have the difference that it will report in decimal units, no matter what, whereas the Properties palette will show it in current Units format [for example, feet-inches-fractions Architectural units].

Kent Cooper, AIA
0 Likes
Message 7 of 9

pendean
Community Legend
Community Legend
Accepted solution

@skchui6159 

pendean_0-1725379950954.png

 

pendean_1-1725379975393.png

 

0 Likes
Message 8 of 9

skchui6159
Advocate
Advocate

Thank you very much! I also want to ask that the text override can use the symbol of "<>" to show the real measurement in integer. Can I use MROUND function(use multiple by 5) like excel to input in the test override to show the Measurement by MROUND?

skchui6159_0-1725411946253.png

In excel:

skchui6159_2-1725412410627.png

 

0 Likes
Message 9 of 9

Kent1Cooper
Consultant
Consultant

@skchui6159 wrote:

... I also want to ask that the text override can use the symbol of "<>" to show the real measurement ....


I would encourage you to find the square brackets that are used for alternate measurements acceptable.  That way, if things get Stretched, both the more-rounded actual and less-rounded alternate measurements will update themselves automatically.  If you need to use a text-content override to get <> instead of [], then they will not update themselves, and you'll need to run a routine on the Dimension again [if you notice that it's needed -- an invitation for errors].

Kent Cooper, AIA
0 Likes