How to Write a Script File Using AutoCAD 2004 Attributes

When using AutoCAD 2004, you can use scripts to automate tasks or animate sections of your drawings or diagrams. The various attributes in the script file will relate to what you want to do in AutoCAD 2004. To make a script for AutoCAD 2004, you must use Windows Notepad, which is preinstalled on all Windows operating systems.

Instructions

    • 1

      Determine what you want the script to achieve. AutoCAD 2004 scripting allows you to use the command line tools to automate a series of tasks. Therefore, it is useful to first practice your script. Make a note of every command line option that you enter, and adjust them where necessary.

    • 2

      Click "Start," type "notepad" into the quick search field and press "Enter." In Notepad you will write your script.

    • 3

      Begin writing your script based on the commands you want to do. You only need to enter the actual configurations in order. For example if you want to rotate object "b" with the coordinates of the first corner being "3" and "-2," then you would write this as the first three lines of the script:

      rotate

      b

      3,-2

      You must enter each attribute that you chose in AutoCAD 2004.

    • 4

      Click "File > Save As." Click the file type drop-down menu and select "All Files." Navigate to your AutoCAD 2004 search path.

    • 5

      Enter "script.scr" as the title. You can replace "script" with any text you want, but the extension must be ".scr." From the scripting menu in AutoCAD, you will now be able to invoke your script by typing its name.

Related Searches:

References

Comments

You May Also Like

Related Ads

Featured