Jump to content

Recommended Posts

Posted

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

Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...