USERR1

Discussion in 'AutoCAD' started by ADAM_A, Apr 15, 2004.

  1. ADAM_A

    ADAM_A Guest

    IS THERE A WAY TO SET THE VALUE OF USERR1 TO THE VALUE OF A VARIABLE FROM A AUTOLISP ROUTINE?
    SIMPLE EX. (SETQ ATT5 5)
    (COMMAND USERR1 (ATT5 VALUE HERE))
     
    ADAM_A, Apr 15, 2004
    #1
  2. ADAM_A

    David Bethel Guest

    (setvar "USERR1" att5)

    -David
     
    David Bethel, Apr 15, 2004
    #2
  3. ADAM_A

    zeha Guest

    SIMPLE EX. (SETQ ATT5 5)
    (setvar "USERR1" ATT5)
     
    zeha, Apr 15, 2004
    #3
  4. I haven't generally used System Variables inside a (command) function, but I
    think you might need to do it with quotes:

    (COMMAND "USERR1" (ATT5 VALUE HERE))

    I've sure done this a lot:

    (setvar "USERR1" att5)

    [That was the only way to do it in the days before you were allowed to type
    in System Variable names at the Command prompt.]

    Kent Cooper, AIA

    "ADAM_A" wrote...
     
    Kent Cooper, AIA, Apr 15, 2004
    #4
  5. While USERRx (reals) and USERIx (integers) are saved across drawing
    sessions, remember that the string versions (USERSx) aren't.
     
    Allen Johnson, Apr 15, 2004
    #5
  6. ADAM_A

    ADAM_A Guest

    THANKS EVERYONE, IT WORKS
     
    ADAM_A, Apr 15, 2004
    #6
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.
Similar Threads
There are no similar threads yet.
Loading...