SSGET

Discussion in 'AutoCAD' started by cesi2d, Feb 19, 2004.

  1. cesi2d

    cesi2d Guest

    Hi,

    Actually , I'm using ssget with filter list for extend data as :
    (Setq SS
    (SSGet "_X"
    '(
    (-3 "MYNAME")
    )
    )
    )

    Now I want to filter for extend data , but the data name must be a
    parametrable string.

    I found the syntax :

    ; Chn is a string with the value "MYNEWNAME" at a time and "MYONDN" at
    another time
    (Setq SS
    (SSGet "_X"
    (List
    (List -3 (Read (Strcat "(\"" Chn "\")") ) )
    )
    )
    )
    This work fine , but is everyone knowing a simpler syntax ?

    Thanks

    Luc Vallot
    Cesi2d
    Chemin du Bassard
    38121 Chonas l ' amballan
    France


    Tel: 04 74 58 95 68
     
    cesi2d, Feb 19, 2004
    #1
  2. cesi2d

    bruno Guest

    cesi2d:
    (setq ss (ssget "x" (list (cons -3 chn))))
     
    bruno, Feb 19, 2004
    #2
  3. cesi2d

    Scot-65 Guest

    :

    Cesi2d,

    Today is your lucky day!

    Aparently you registered an application (group code -3).
    And you want to fetch these entities with the
    registered application tags...


    The following is the example I use to fetch the
    entity that represents the current date:

    (setq s (ssget "x" '( (-3 ("JPW_DATE"))) ))


    I registered this application as follows:

    (if (not (tblsearch "appid" "JPW_DATE")) (regapp "JPW_DATE") );if
    (entmod (append (entget (car d)) '( (-3 ("JPW_DATE" (1000 . "JPW98")))) ))


    I tried sooooo hard to shorten this but to no avail.

    You do not have enough parenthesis in your statement.


    Good Luck !


    Scot-65
     
    Scot-65, Feb 19, 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.