Erase Method Not Clearing a Selection Set

Discussion in 'AutoCAD' started by dzentrich, Jun 1, 2004.

  1. dzentrich

    dzentrich Guest

    I have a routine that performs a loop four times calling the Add method of a named selection set once during each loop.

    When I call the Erase method against the same named selection set, only the entities added in the first two passes of the loop are erased. The entities added from the last two passes remain in the selection set and are visible on the screen...

    Is there a problem with calling the Add method against a selection set more than once or some other practical limitation that I should be aware of?

    The functions are kinda lengthy so I'll post them if anyone thinks it will be helpful, but running the code doesn't generate any errors - it just leaves a bunch of unwanted stuff on the screen...

    Thanks,
    Dave Zentrich
     
    dzentrich, Jun 1, 2004
    #1
  2. dzentrich

    Joe Sutphin Guest

    Dave,

    Yeah, I think the code would have to be posted. You can send directly to me
    if you want an immediate response.

    Joe
    --

    a named selection set once during each loop.
    the entities added in the first two passes of the loop are erased. The
    entities added from the last two passes remain in the selection set and are
    visible on the screen...
    more than once or some other practical limitation that I should be aware of?
    be helpful, but running the code doesn't generate any errors - it just
    leaves a bunch of unwanted stuff on the screen...
     
    Joe Sutphin, Jun 1, 2004
    #2
  3. dzentrich

    dzentrich Guest

    Here is the code in question. Let me know if it makes sense.

    Thanks,
    Dave Zentrich
     
    dzentrich, Jun 1, 2004
    #3
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.