ssget - problem

Discussion in 'AutoCAD' started by gert, Feb 8, 2005.

  1. gert

    gert Guest

    Whats wrong with the following lines? i would like to get all Inserts
    named ZD1, ZD2, ZDM1, ZDM2
    I get a "to many arguments" error

    (setq GFILTER '((-4 . "<or") (2 . "ZD1") (2 . "ZD2") (2 . "ZDM1") (2 .
    "ZDM2") (-4 . "or>")))
    (setq GSS (ssget "_X" GFILTER)
     
    gert, Feb 8, 2005
    #1
  2. gert

    BillZ Guest

    (setq GSS (ssget "_X" GFILTER))

    Works like this for me.

    Bill
     
    BillZ, Feb 8, 2005
    #2
  3. gert

    Alaspher Guest

    Only last parenthesis:
    (setq GSS (ssget "_X" GFILTER))
    May be it was missed through clipboard...
     
    Alaspher, Feb 8, 2005
    #3
  4. gert

    gert Guest

    I really shouldnt say what the mistake has been. i used " in a (prompt
    line above to write on the screen what my prog is going to do now...
    Therefore the to many arguments error, but not from the (ssget, it has
    been from (prompt...

    Thanks for your help.

    MfG
    Gert
     
    gert, Feb 8, 2005
    #4
  5. FWIW, you can simplify that filter

    (setq ss (ssget "x" '((2 . "ZD1,ZD2,ZDM1,ZDM2"))))
     
    Jason Piercey, Feb 8, 2005
    #5
  6. gert

    gert Guest

    thx for this tip....
    What means FWIW???
     
    gert, Feb 8, 2005
    #6
  7. FWIW = For What Its Worth

    You're welcome
     
    Jason Piercey, Feb 8, 2005
    #7
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.