How to set dimensions always comes under even numbers?

How to set dimensions always comes under even numbers?

Anonymous
Not applicable
2,865 Views
10 Replies
Message 1 of 11

How to set dimensions always comes under even numbers?

Anonymous
Not applicable

if dimensional measurements comes 94.3 ; it how to change 94.2 or 94.4 by using command or any lisps available here???

0 Likes
Accepted solutions (3)
2,866 Views
10 Replies
Replies (10)
Message 2 of 11

imadHabash
Mentor
Mentor

Hi and Welcome to AutoCAD Forum,

would you please explain more your issue ? 🙂

Imad Habash

EESignature

0 Likes
Message 3 of 11

S.Faris
Advisor
Advisor
Accepted solution

Change the Dimension Style Roundoff to 0.2

e3XivRrx7d.png

SALMANUL FARIS

0 Likes
Message 4 of 11

Tomislav.Golubovic
Advisor
Advisor

@S.Faris wrote:

Change the Dimension Style Roundoff to 0.2

 


No, just no.

 

To the OP, draw it the right length and dimension it appropriately. Use the stretch/trim commands to make it longer or shorter, but don't draw a line one length and dimension it another. That's just bad practice.

0 Likes
Message 5 of 11

S.Faris
Advisor
Advisor

How to set dimensions always comes under even numbers?

My suggestion was if the OP want to adjust the dimension, as you can see what the title says. 

SALMANUL FARIS

0 Likes
Message 6 of 11

illusionistNUGXG
Advocate
Advocate

This value in the dimstyle is a system variable.

Changing it would not apply to any existing dimensions, but would apply to every new one. Regardless of witch drawing you are working on.

I agree with Tomislav.Golubovic and also do not recommend changing it.

 

If necessary, each dimension can be changed individually.

Select one or more dimensions, and it can be changed there in the dimensioning-tab.

This way, you won’t mess up any further drawings.

 

I’ve made a screenshot...

It is from the german version of AutoCAD Mechanical (2018), but (i hope) it should show you where to look for.

0 Likes
Message 7 of 11

BrianBenton
Collaborator
Collaborator

@Tomislav.Golubovic wrote:

@S.Faris wrote:

Change the Dimension Style Roundoff to 0.2

 


No, just no.

 

To the OP, draw it the right length and dimension it appropriately. Use the stretch/trim commands to make it longer or shorter, but don't draw a line one length and dimension it another. That's just bad practice.


While I would typically agree with this practice, Dimension it as it's drawn, if you don't like the dimension change the line...we don't know the real life application that the OP needs right here so it might be ok to do.

 

Now, OP, I would suggest that instead rounding the dimension you do as suggested, change the linework. But if that's not possible set the rounding options in the dimension style to fit your needs. I don't know if it can always be set to an even number or not. You might have to set up multiple styles and use the one that works for each instance. It could be a lot of work and might be easier just to change the linework.

 

I'm curious, why do you need the dimensions to round to the nearest even number?

Brian C. Benton

bbenton@cad-a-blog.com
http://CAD-a-Blog.com
twitter.com/bcbenton
www.facebook.com/CADaBlog


0 Likes
Message 8 of 11

S.Faris
Advisor
Advisor
Accepted solution

Creating a Dimension style will help to isolate the roundoff dimension with errors. If in future someone want to select all the dimensions for which you did the ROUNDOFF manually, I prefer a DIMSTYLE(the style name can done in a way that it will make the user aware of the issue ) way more than to Quick select every time. Also other users might use the overrided dimensions in future to matchproperty other dimension, without being aware of the tweak. 

 

None of us know, the number of elements involved in this error or the reason why the OP requested for an option to adjust the dimension.

So I don't think asking the person to draw everything from the beginning is the option. We just share all the possible ways possible and guide him so that the OP can choose the one that suits his needs. Smiley Happy

SALMANUL FARIS

0 Likes
Message 9 of 11

Kent1Cooper
Consultant
Consultant
Accepted solution

If you want to correct the drawn objects themselves as has been suggested, you can do that wholesale with @Anonymous's QUANTALL.lsp, >here<, or with the attached enhancement/expansion of the idea that I've been developing.  The "zz" at the beginning of the file name is my cue that it's something still under development, and you'll find it's full of notes to myself, questions about what it should or could work on and/or how to do so, etc., etc.  But it works pretty well as is, on things it's built to work on.

 

If you give it 0.2 as the quantization value, it will force all the controlling geometry to fall on multiples of that.  HOWEVER, read the top of the file, for how that works for particular entity types [for example, it quantizes the center point and radius of an Arc, not its end points, which will only sometimes then fall on quantized locations].  And even if you don't encounter any of those differences, and all dimensioned points do end up on quantized locations, most diagonal  Dimensions won't  end up reading to the nearest 0.2 multiple unless you force them to with a rounding value in the Dimension Style, or a text override.

 

The overriding question in my mind is:  For what purpose  do you need Dimension text to show only at multiples of 0.2?

Kent Cooper, AIA
Message 10 of 11

Anonymous
Not applicable
simply superp friend thanks for ur answer s.faris 🙂
Message 11 of 11

Anonymous
Not applicable

Dear Valdimir,

zzQUANTIZE seems to be what I need. Command QSS.

 

I may need to 0.2 or 0.3 or 0.15 because some piping has decimal diameter, so if I round to 1 I loose the real pipe diameter.

Example 48.3 mm (1" 1/2) cannot become 48.0 mm.

 

Anyhow I tried to generate lines with one end to coordinates 1.01, 1.01 and apply FixOffGrid

- grid value: 1, fuzz: 2 => nothing happen

- grid value: 1, fuzz: 1 => nothing happen

- grid value: 1, fuzz: 0.1 => nothing happen 

- grid value: 1, fuzz: 0.01 => fixed to 1 ,1

- grid value: 1, fuzz: 0.001 => fixed to 1 ,1

 is not working properly with a kind of logic on the fuzz parameter. It seems that rounds what is coincident or outside the "virtual square". And is not what I need.

 

I will use zzQUANTIZE from now on.

Many thanks.

0 Likes