AutoCAD: Secrets Every User Should Know

Chapter 7: AutoCAD Scripts

Overview

Most users have forgotten AutoCAD Scripts over the past few years, and that s too bad, because scripts are simple and powerful. I use them every day to manage network computers, set up drawings, and test individual workstations to see how well they run AutoCAD. Scripts are my own personal insurance policy they prevent those unwelcome surprises that sometimes occur when I m presenting material on somebody else s computer.

But when it comes to updating drawings, this poor-man s programming tool packs an even bigger punch. I ve written scripts that update literally thousands of drawings while I m busy doing something else. In the last section of this chapter, I ll show you a few examples. Once you ve seen them, I guarantee you ll be thinking up a few of your own.

If you changed the default path for AutoCAD when it was installed, you must use your own path in the code used in this chapter. C:\Program Files\AutoCAD 2007\acad.exe is used as the path to the acad.exe file throughout.

  • Characteristics of Scripts

  • Writing and Running Scripts

  • Updating Thousands of Drawings

Characteristics of Scripts

Scripts are essentially extremely fast typists. When you have to do one thing the same way every time, scripts can t be beat. They even have one advantage over real programming languages: You can use them in AutoCAD LT.

Let s start with a few characteristics of scripts:

  • Scripts are ASCII text files. Use a text editor for best results.

  • They consist of things you would normally type at...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Computer-Aided Design (CAD) Services
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.