SELECTSIMILAR has been added to 2011 and up, you can get that for 2010 from the subscription advantage pack. If you are on subscription you can download it.
I first typed that it was in the Labs but that is not correct.

Registered forum members do not see this ad.
Hello everyone,
It's possible I should take my question to another AutoCAD subforum first, but I'm guessing the answer over there will be no already, so I figured I should just bring it here and get it over with.
Question: Is there a built-in feature in AutoCAD (or available LISP routine) that lets you select all instances of the same geometry based on your current selection?
Problem description: Our client sends us .dwg files that apparently are created in another piece of software and simply converted to DWG format for our use. The problem is that they always contain a bunch of objects that SHOULD be text, but instead are interpreted by AutoCAD as a combination of tiny lines/polylines/arcs, which we don't use at all and are a huge pain to remove while cleaning up their drawings to incorporate into ours.
Most of the objects are the same, however, aka they're different instances of the same combination of geometry. I was wondering if there was a way to select one such instance, and then tell AutoCAD to select every other instance of geometry that shares the same features (say, # of objects, lengths, relative coordinates, etc.).
We're running AutoCAD 2010, by the way. Thanks a bunch for the help.
(p.s. The "fonts" they use are pretty weird. Is it possible that simply downloading the font could resolve the issue? I haven't knowingly come across a case where a drawing includes fonts not recognized by AutoCAD, so I don't know how/if the program handles such a situation.)




SELECTSIMILAR has been added to 2011 and up, you can get that for 2010 from the subscription advantage pack. If you are on subscription you can download it.
I first typed that it was in the Labs but that is not correct.
Last edited by rkent; 11th Apr 2012 at 12:11 am. Reason: added words
"You are entitled to your own opinion but you are not entitled to your own facts." Daniel Patrick Moynihan

The description of SELECTSIMILAR on the subscription advantage pack page doesn't suggest it has any more functionality than QSELECT. Do you know for a fact that it can do the "select everything that looks like this" task I'm describing here? If so, I'll definitely start begging and pleading with the bosses to let me get a hold of this, heh.
Thanks.
Nope, the SelectSimilar (and even my older SelSimilar on AUGI: http://forums.augi.com/showthread.ph...641#post827641) only select objects per their properties (i.e. colour, linetype, layer, style, etc.).
What you're after is something which would look at the relative control points of each object in comparison to each other. Then select all those groups of objects having similar relative points. That's a huge task, and I'm doubtful if such lisp has been attempted yet. Especially if such things as rotation needs to be accounted for. Are you certain this "exploded" text is not on a specific layer?
Knowledge is proportional to experience, but wisdom is inversely proportional to ego!
My little bit of "wisdom": Hind-sight is useless, unless used to improve the next forethought!

Hi irneb,
Your SelectSimilar lisp is very useful! Can you add 2 buttons in DCL, one with Select All and anothe with Clear All? for options ...to clear them or to select them faster... Thanks!
I'll look into doing that ... though it's a lot similar to the new built-in command. The only "benefit" of using mine over acad's own is that you can select the entities on which it applies, acad's always selects everything in the drawing and then filters on those.
Knowledge is proportional to experience, but wisdom is inversely proportional to ego!
My little bit of "wisdom": Hind-sight is useless, unless used to improve the next forethought!
It sounds like they have been exploding their text when they convert to a DWG file. Have you considered contacting them to ask of they could pack it in? ;>

Unfortunately, yes. The dwgs they send us are usually ~3 layers, and every layer has all kinds of stuff on it. The drawings are chock-full of blocks too--often times nested 3-deep--so I highly doubt that the issue is them exploding objects they shouldn't. And, the dwgs also have objects that AutoCAD does recognize as text which we can delete easily, but these other ones are a different font and yeah, it's always non-text text.
Obviously conceptualizing the problem and realizing it are completely different beasts, but in my head it didn't seem like it should be too tough a thing to do, even though it would take a looong time to process most likely. The way I do it now already involves QSELECTing all lines of a particular length (or smaller than length X), turning them a color that stands out big time, and then going through the sheet and erasing whichever objects fit the bill. I figured there should be a not-too-complicated way to normalize the current selection and narrow the choices down by elimination.
But eh, one can always dream. Once I have a bunch of time to spare I'll see if I can take a stab at it, heh.

And this just occurred to me, what if I "defined" the objects in the LISP routine beforehand instead of going off the current selection? The vast majority of the objects in the dwgs are oriented the same way, after all, or rotated some multiple of 90 degrees at worst.




Registered forum members do not see this ad.
What is the other software ? this is really where the problem is maybe someone can help
A man who never made mistakes never made anything
Bookmarks