I need help on writing a script that will help me do layer control on key drawings. I do not know how to write a script in AutoCAD. Any suggestions will be greatly appreciated.
Layer control script - Help
Dec 19, 2003
2 Replies
Any TXT file will work, rename to SCR. Then type commands into the text file with notepad or similar. Type it axactly as you type the commands at the command prompt in AutoCAD.
Conny
"HP Garcia" skrev i meddelandet news:3fe289a8$1 snipped-for-privacy@corp.newsgroups.com...
To expand a bit on what Conny wrote, since you mentioned layer control, here's a quick example:
LAYER MAKE MyNewLayer COLOR
12Note that two carriage returns are required after the 12 to completely exit the layer command. As a side note, you may want to look into lisp as well. The same thing can be by the following using lisp, like this:
(command "LAYER" "MAKE" "MyNewLayer" "COLOR" 12 "")
C> Any TXT file will work, rename to SCR.
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required