CarlB
Joined: 27 Sep 2005
Posts: 52
|
Posted:
Wed Sep 28, 2005 10:50 pm Post subject:
re:Lisp file |
|
|
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" "") |
|