VLAX.CLS assoc list?

Discussion in 'AutoCAD' started by Glen Shaw, Jul 2, 2003.

  1. Glen Shaw

    Glen Shaw Guest

    I was wondering if the SetLispSymbol in the VLAX.CLS can create assoc lists?
    or even better nested assoc lists:
    ( ( tag1 . value1 ) ( tag2 . value2 ) ( tag3 . value3 ) ... )

    Any takers?? ( Frank, Robert, ...)

    TIA
    Glen
     
    Glen Shaw, Jul 2, 2003
    #1
  2. Glen Shaw

    Glen Shaw Guest

    I was wondering if the SetLispSymbol in the VLAX.CLS can create assoc
    Can it also handle "dotted pairs" ?
    If so do you happen to have a code snippit?

    TIA
    Glen
     
    Glen Shaw, Jul 2, 2003
    #2
  3. Not quite sure what the difference is between an assoc list and a list
    of dotted pairs.
     
    Frank Oquendo, Jul 2, 2003
    #3
  4. Glen Shaw

    Glen Shaw Guest

    Not quite sure what the difference is between an assoc list and a list
    Maybe I'm doing something wrong,

    but when I try to create an array of array's

    I get a list of lists

    ( ("WIDTH" "40.0") ("HEIGHT" "80.0") )

    and not a list of dotted pairs :

    ( (WIDTH . "40.0") (HEIGHT . "80.0") )

    Any ideas?
    Thanks
    Glen
     
    Glen Shaw, Jul 3, 2003
    #4
  5. Ahh.... I see. I mispoke. However, you can execute a LISP routine of
    your own making to convert the list of lists into a list of dotted
    pairs. Use SetLispSymbol to define the routine at runtime.
     
    Frank Oquendo, Jul 3, 2003
    #5
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.