How to select only arc(radial) dimensions

How to select only arc(radial) dimensions

Anonymous
Not applicable
1,512 Views
5 Replies
Message 1 of 6

How to select only arc(radial) dimensions

Anonymous
Not applicable

Hi!

 

1. How to select only arc(radial) dimensions (using ssget)

  rrr.png

 

2. How to select only diameter dimensions (using ssget)

 

ddd.png

0 Likes
Accepted solutions (1)
1,513 Views
5 Replies
Replies (5)
Message 2 of 6

DannyNL
Advisor
Advisor
Accepted solution

Use this code

 

(ssget '((0 . "DIMENSION")(-4 . "<OR")(70 . 164)(70 . 36)(-4 . "OR>"))) --> for radial

 

(ssget '((0 . "DIMENSION")(-4 . "<OR")(70 . 163)(70 . 35)(-4 . "OR>"))) --> for diameter

 

 

0 Likes
Message 3 of 6

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

 

1. How to select only arc(radial) dimensions (using ssget) 

2. How to select only diameter dimensions (using ssget)

 

 


Various circumstances can result in the 32 "bit" and/or the 128 "bit" in the (assoc 70) entry in entity data being absent from the value, so values of 163 or 164 are not reliable tests.  These will get them whether or not  either of those components is included:

 

For Radius Dimensions:

 

(sssetfirst nil (ssget "_X" '((0 . "DIMENSION") (-4 . "&") (70 . 4))))

 

For Diameter Dimensions:

 

(sssetfirst nil (ssget "_X" '((0 . "DIMENSION") (-4 . "&") (70 . 3))))

 

Leave out the "_X" parts if you want User  selection, with the routine "seeing" only those kinds of objects, rather than finding all of them in the drawing.

 

Kent Cooper, AIA
Message 4 of 6

DannyNL
Advisor
Advisor

Code 32 will always be present since R13 according to the documentation, but I agree your version is easier and shorter Smiley Happy

0 Likes
Message 5 of 6

Anonymous
Not applicable

Thanks! 

 

It works fine!!!!!

0 Likes
Message 6 of 6

john.uhden
Mentor
Mentor

@Kent1Cooper wrote " ... whether or not  either of those components is included:"

 

I congratulate you on showing that you know that "either" is singular.

John F. Uhden

0 Likes