Linetype determination

Discussion in 'AutoCAD' started by Thomas Homan, Jun 21, 2004.

  1. Thomas Homan

    Thomas Homan Guest

    Help!

    I know I've done it before but am suffering a Monday brain-fart. If I have a
    variable defined as an object and am iterating a selection set, How do I
    determine what type of object I'm working with?

    Environment is acad map 2004
    Example:
    Assuming a drawing with lines, LWpolylines, arcs

    Dim ent as object
    Dim WorkSet as AcadSelectionSet

    WorkSet.Select acSelectionSetAll

    for each ent in WorkSet
    'determine line type here
    ......
    next

    Thanks for any help someone can provide
     
    Thomas Homan, Jun 21, 2004
    #1
  2. Thomas Homan

    Joe Sutphin Guest

    If TypeOf oEntity Is ....

    Joe
     
    Joe Sutphin, Jun 21, 2004
    #2
  3. Thomas Homan

    wivory Guest

    Or if you don't know what it might be, examine ent.ObjectName.

    Regards

    Wayne Ivory
    IT Analyst Programmer
    Wespine Industries Pty Ltd
     
    wivory, Jun 22, 2004
    #3
  4. Thomas Homan

    Thomas Homan Guest

    That's what I was looking for. Thanks!

    Tom
     
    Thomas Homan, Jun 26, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.