AutoCAD: Secrets Every User Should Know

Getting to DOS with AutoLISP

Now it s time to pull together a number of different tools. The program in Listing 9.13 was written for a company that deals with various contractors who use a range of AutoCAD releases. The company wanted to generate a list of its drawing files to determine whether any particular file had to be converted to an earlier release before sending it to a contractor. I didn t have to go back to the beginning of AutoCAD to write this program, but I thought it would be interesting, so I included all the commercial versions.

Listing 9.13
Relshell.lsp        ;        relshell.lsp        Dan Abbott        ################################################################        The bit flag for the SHELL command in the ACAD.pgp file        must be set to 0 for this program to work. The default setting is        1, so the program adds a line to the end of the file changing it        to 0. This causes no harm, it just forces AutoCAD to wait until the        program finishes its shell function. Use the program when you have        the time to stop using AutoCAD for a while.

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: Cluster Software and Tools
Finish!
Privacy Policy

This is embarrasing...

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