SSget filter list issue

Discussion in 'AutoCAD' started by Gary J. Orr, Sep 15, 2004.

  1. Gary J. Orr

    Gary J. Orr Guest

    Does anyone know why this will work:

    ;| test string
    (setq STYNME "LHB_0008")
    |;
    (setq updldrstylst (ssget "X"
    (list
    (cons 0 "dimension")
    (cons 3 (strcat STYNME "*"))
    (cons -4 "<NOT")
    (cons 3 (strcat STYNME "*_awhd*"))
    (cons -4 "NOT>")
    )
    )
    )
    ;| test string
    (command "select" updldrstylst)
    |;

    And This will not:

    ;| test string
    (setq STYNME "LHB_0008")
    |;
    (setq updldrstylst (ssget "X"
    (list
    (cons 0 "leader")
    (cons 3 (strcat STYNME "*"))
    (cons -4 "<NOT")
    (cons 3 (strcat STYNME "*_awhd*"))
    (cons -4 "NOT>")
    )
    )
    )
    ;| test string
    (command "select" updldrstylst)
    |;
    Notice that the only difference is that one filters for dimensions while the
    other looks for leaders...
    Any help will be appreciated

    --
    Gary J. Orr
    CADD Administrator
    (218) 279-2421


    LHB, Inc
    21 West Superior Street, Suite 500
    Duluth, Mn 55802
    (218) 727-8446
    www.LHBcorp.com
     
    Gary J. Orr, Sep 15, 2004
    #1
  2. There is a bug with ssget and the stylename. I've
    mentioned here a couple of times, but was unable
    to locate the exact threads for reference. I ended
    up getting a selection set of all dimension/leaders
    and stepping through the set and filtering for the
    desired names.
     
    Jason Piercey, Sep 15, 2004
    #2
  3. Gary J. Orr

    Gary J. Orr Guest

    I somehow knew that that would be the response.
    Thanx a lot Jason

    --
    Gary J. Orr
    CADD Administrator
    (218) 279-2421


    LHB, Inc
    21 West Superior Street, Suite 500
    Duluth, Mn 55802
    (218) 727-8446
    www.LHBcorp.com
     
    Gary J. Orr, Sep 15, 2004
    #3
  4. Wish there was another solution, but....

    You're welcome.
     
    Jason Piercey, Sep 15, 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.