CADLee Posted March 15, 2013 Posted March 15, 2013 I was wondering if someone could tell me in a easy to understand way, about how to write a script file, or are there any tutorials on them. What is the purpose of them? Thanks Quote
dbroada Posted March 15, 2013 Posted March 15, 2013 script files are a way of supplying commands to AutoCAD as though they were typed from the keyboard. If you have a set of repetitive commands they are perfect. We often use them to delete an area of a drawing and insert a block in their place. The best thing to do is write down what you type and then press F2 to see if there are any options that you can use. When you have your list of instructions type them into notepad and save the file with a .scr extension. To run the script drag it from explorer into your drawing or launch it from the SCRIPT command. Be careful though, there is no error trapping in scripts, if you get it wrong you can crash. Quote
SLW210 Posted March 18, 2013 Posted March 18, 2013 Here are some tutorials- How to Write a Script File; Automate tasks with a script file Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.