+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
  1. #1
    Full Member
    Using
    AutoCAD 2010
    Join Date
    Aug 2011
    Posts
    43

    Default Routine/feature to select "similar" geometry?

    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.)

  2. #2
    Forum Deity rkent's Avatar
    Computer Details
    rkent's Computer Details
    Operating System:
    WIN7 PRO 64bit
    Computer:
    Dell Precision T7500
    CPU:
    Xeon Dual Core E5503 2.0Ghz
    RAM:
    6GB DDR3 ECC SDRAM, 1333MHz, 6x1GB
    Graphics:
    nVidia Quadro 3800
    Primary Storage:
    300Gb, 10K rpm
    Monitor:
    Dell 24" FS (2x)
    Discipline
    Mechanical
    rkent's Discipline Details
    Occupation
    Facilities Design - Semi-conductor manufacturing
    Discipline
    Mechanical
    Details
    Designer: Process Piping, P&ID's, Machine Part Design, Planning / General Arrangement. Facilities Management. Drafting: Electrical, Controls, Architectural.
    Using
    Mechanical 2014
    Join Date
    Nov 2007
    Location
    Lat:35, Long:-106, Elev: 5164'
    Posts
    3,371

    Default

    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

  3. #3
    Full Member
    Using
    AutoCAD 2010
    Join Date
    Aug 2011
    Posts
    43

    Default

    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.

  4. #4
    Super Member irneb's Avatar
    Computer Details
    irneb's Computer Details
    Operating System:
    Win7 Pro 64bit
    Computer:
    Antec One Hundred
    Motherboard:
    ASUS P8P67-Pro P67
    CPU:
    Intel i7 2600 @ 3.4GHz
    RAM:
    16GB-1600MHz
    Graphics:
    GeForce GT 430 (1GB)
    Primary Storage:
    Seagate1TB SATA2 - 7200rpm
    Monitor:
    Samsung 2333TN 23" 1920 x 1080 Full HD LCD Monitor2GW
    Discipline
    Architectural
    irneb's Discipline Details
    Occupation
    Architectural Technician and Programmer
    Discipline
    Architectural
    Using
    AutoCAD 2013
    Join Date
    Sep 2010
    Location
    Jo'burg SA
    Posts
    1,630

    Default

    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!

  5. #5
    Full Member
    Using
    AutoCAD 2008
    Join Date
    Feb 2012
    Posts
    44

    Default

    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!

  6. #6
    Super Member irneb's Avatar
    Computer Details
    irneb's Computer Details
    Operating System:
    Win7 Pro 64bit
    Computer:
    Antec One Hundred
    Motherboard:
    ASUS P8P67-Pro P67
    CPU:
    Intel i7 2600 @ 3.4GHz
    RAM:
    16GB-1600MHz
    Graphics:
    GeForce GT 430 (1GB)
    Primary Storage:
    Seagate1TB SATA2 - 7200rpm
    Monitor:
    Samsung 2333TN 23" 1920 x 1080 Full HD LCD Monitor2GW
    Discipline
    Architectural
    irneb's Discipline Details
    Occupation
    Architectural Technician and Programmer
    Discipline
    Architectural
    Using
    AutoCAD 2013
    Join Date
    Sep 2010
    Location
    Jo'burg SA
    Posts
    1,630

    Default

    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!

  7. #7
    Super Member Pablo Ferral's Avatar
    Using
    Inventor 2010
    Join Date
    Feb 2005
    Location
    London
    Posts
    571

    Default

    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? ;>

  8. #8
    Full Member
    Using
    AutoCAD 2010
    Join Date
    Aug 2011
    Posts
    43

    Default

    Quote Originally Posted by irneb View Post
    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?
    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.

  9. #9
    Full Member
    Using
    AutoCAD 2010
    Join Date
    Aug 2011
    Posts
    43

    Default

    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.

  10. #10
    Forum Deity
    Using
    Civil 3D 2013
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    3,780

    Default

    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

Similar Threads

  1. Program Freezes When "Executing Create Grill Feature."
    By Pineiro in forum Autodesk Inventor
    Replies: 6
    Last Post: 2nd Mar 2012, 09:08 pm
  2. "LOFT" feature does not seems creating correctly!!!
    By CAnnondale in forum Autodesk Inventor
    Replies: 4
    Last Post: 23rd Nov 2010, 01:16 am
  3. "BREAK OUT" feature, does not show the object thickness
    By CAnnondale in forum Autodesk Inventor
    Replies: 4
    Last Post: 22nd Nov 2010, 02:09 am
  4. Perform "Loft" or similar in acad 06?!
    By sam. in forum AutoCAD General
    Replies: 21
    Last Post: 19th Nov 2007, 06:22 pm
  5. Lisp routine to delete a file form "C" drive
    By muck in forum AutoLISP, Visual LISP & DCL
    Replies: 3
    Last Post: 28th Mar 2007, 09:01 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts