Check for and Clear SelectSet

Discussion in 'AutoCAD' started by Wsalling, Sep 10, 2003.

  1. Wsalling

    Wsalling Guest

    I need to see if a selection set exists and if so delete it so I can
    recreate the select with same name.

    This is set code:

    set SSobjs = Thisdrawing.selectionsets.add("Poly1")


    I tried using a IF NOT put could not get to work.

    if not SSobjs then
    set SSobjs = Thisdrawing.selectionsets.add("Poly1")
    else
    ssobjs.delete
    end if
     
    Wsalling, Sep 10, 2003
    #1
  2. Wsalling

    Wsalling Guest

    Thanks works great




     
    Wsalling, Sep 10, 2003
    #2
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.