Program consolidation problem

Discussion in 'AutoCAD' started by Matt W, Jul 15, 2004.

  1. Matt W

    Matt W Guest

    I'm trying to consolidate four programs into one; They all create a
    schedule based on attribute information.
    I'm trying to pass some block names to the program, but it keeps hanging at
    the following lines and I get this error message:

    strHeader is the name of one of the blocks in my drawing.

    "bad SSGET list value"
    Error: bad SSGET list value

    (setq ss1 (ssget "X" (list (cons 0 "INSERT") (cons 2 strHeader))))
    (if ss1
    (progn
    (command "erase" ss1 "")
    (command "purge" "a" "*" "N")
    )
    )

    Thanks in advance!
     
    Matt W, Jul 15, 2004
    #1
  2. Matt W

    Matt W Guest

    I'm sorry... strHeader is a variable that holds the name of the block.
    *I* knew what I meant.

    --
    Matt W

    The difference between genius and stupidity is that genius has its limits.
    | Put strHeader in quotes.
    |
    | | > I'm trying to consolidate four programs into one; They all create a
    | > schedule based on attribute information.
    | > I'm trying to pass some block names to the program, but it keeps hanging
    at
    | > the following lines and I get this error message:
    | >
    | > strHeader is the name of one of the blocks in my drawing.
    | >
    | > "bad SSGET list value"
    | > Error: bad SSGET list value
    | >
    | > (setq ss1 (ssget "X" (list (cons 0 "INSERT") (cons 2 strHeader))))
    | > (if ss1
    | > (progn
    | > (command "erase" ss1 "")
    | > (command "purge" "a" "*" "N")
    | > )
    | > )
    | >
    | > Thanks in advance!
    | >
    | > --
    | > Matt W
    | >
    | > The difference between genius and stupidity is that genius has its
    limits.
    | >
    | >
    |
     
    Matt W, Jul 15, 2004
    #2
  3. Matt W

    Matt W Guest

    AH HA!!

    I didn't define ss1 as a local variable so the program kept callin' it quits
    on me.


    --
    Matt W

    The difference between genius and stupidity is that genius has its limits.
    | I'm sorry... strHeader is a variable that holds the name of the block.
    | *I* knew what I meant.
    |
    | --
    | Matt W
    |
    | The difference between genius and stupidity is that genius has its limits.
    | | | Put strHeader in quotes.
    | |
    | | | | > I'm trying to consolidate four programs into one; They all create a
    | | > schedule based on attribute information.
    | | > I'm trying to pass some block names to the program, but it keeps
    hanging
    | at
    | | > the following lines and I get this error message:
    | | >
    | | > strHeader is the name of one of the blocks in my drawing.
    | | >
    | | > "bad SSGET list value"
    | | > Error: bad SSGET list value
    | | >
    | | > (setq ss1 (ssget "X" (list (cons 0 "INSERT") (cons 2 strHeader))))
    | | > (if ss1
    | | > (progn
    | | > (command "erase" ss1 "")
    | | > (command "purge" "a" "*" "N")
    | | > )
    | | > )
    | | >
    | | > Thanks in advance!
    | | >
    | | > --
    | | > Matt W
    | | >
    | | > The difference between genius and stupidity is that genius has its
    | limits.
    | | >
    | | >
    | |
    |
    |
     
    Matt W, Jul 16, 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.