generating variables automatically

Discussion in 'AutoCAD' started by nagesh, Aug 5, 2003.

  1. nagesh

    nagesh Guest

    hi friends,
    i want to know how to create variables automatically.
    i am not telling about ssget and ssname.
    regards
    nagesh
     
    nagesh, Aug 5, 2003
    #1
  2. nagesh

    Jim Short Guest

    put in a loop:

    (set (read (strcat Varname strnum)) (eval (read (strcat value valnum))))

    However,
    The beauty of lisp is being able to avoid setting many symbols.
    Jim

    "nagesh" < <mailto:>>
    wrote in message
     
    Jim Short, Aug 5, 2003
    #2
  3. nagesh

    nagesh Guest

    thanks jim
    i will try this.
    nagesh
     
    nagesh, Aug 5, 2003
    #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.