Results 1 to 2 of 2

Thread: Lisp file

  1. #1
    psilzle Guest

    Lisp file

    I wrote a quick little script file to add some layers and set the color
    to use on about 300 drawing we are converting over. There is a later
    that I want to change its name and know how to do that with the script,
    but the name is not always the same. It is BEND sometimes and BENDS
    others. I can't do a logic test with a script and do not know lisp
    well enough to use it. Also anyway to change all entities that are the
    color white to layer 0?

    Thanks,

    Paul Silzle

  2. #2
    Join Date
    Sep 2005
    Posts
    121
    You can use lisp in a script, but there can be problems with a script processing faster than the list statement/operation.
    (if "tblsearch" "layer" "bend")(command "-rename" "LA" "bend" "somethingelse"))
    (if "tblsearch" "layer" "bends")(command "-rename" "LA" "bends" "somethingelsealso"))

    All items that are color white to layer 0 - not so easy. A lisp routine could select all objects that have their color set to white, and could select all items on layers that are set to white and are color "bylayer". Your script could run this lisp routine, then oerate on the selection set to change all to layer 0. or just have the lisp routine do that as well. ..or instead of a script convert it all to lisp. may not be as difficult as you think. Most Autocad commands can be replicated in lisp as follows;

    (command "autocad command" "input 1" "input 2")

    for example

    (command "line" "0,0" "3,3" "")

Similar Threads

  1. Lisp file for freezing...
    By mhopeck in forum Customization
    Replies: 1
    Last Post: 10-19-2005, 11:54 AM
  2. file selector in lisp..
    By Not Necessarily Me in forum AutoCAD
    Replies: 1
    Last Post: 08-25-2005, 09:10 AM
  3. Log File LISP or Script?
    By Matt Trucks in forum Customization
    Replies: 5
    Last Post: 03-24-2005, 06:41 PM
  4. Lisp in MNS menu file
    By devon in forum Customization
    Replies: 6
    Last Post: 01-11-2005, 12:03 AM
  5. Using lisp in .mns file - problem
    By devon in forum Customization
    Replies: 12
    Last Post: 01-05-2005, 10:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other forums: Access Forum - Microsoft Office Forum - Exchange Server Forum