Fields and Lisp

Discussion in 'AutoCAD' started by Vito, Dec 28, 2004.

  1. Vito

    Vito Guest

    Can you use lisp to populate a field? I want to populate a field with the number of layouts in a drawing but I can't figure out how.

    I was hoping I can use (length (layoutlist)) in the field expression but DIESEL doesn't handle that.

    Any suggestions, Will fields ever support lisp expressions?
     
    Vito, Dec 28, 2004
    #1
  2. Vito

    Clarence Guest

    im not sure how to do the exact command. But I'm working on a field command for area text.

    Figure out how to use field to place your info (to see if fields have that capability_. Then use lisp to retrieve your info. Put the two together.

    In my command I'm getting the object id and other info and then I run the command fields > objects. Then I use autolisp to place the lisp gathered information into the field.
     
    Clarence, Dec 29, 2004
    #2
  3. Vito

    Clarence Guest

    search for this in this ng:

    Object ID for area field


    its what I started with for my command. i hope it helps!
     
    Clarence, Dec 29, 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.