|
|
Keeping your drawing and other associated files in separate directories makes it easier to perform basic file maintenance.
Keeping your drawing files and other associated files in separate directories makes it easier to perform basic file maintenance. The scenario described in this topic is based on the sample directory structure described in Overview of File Organization, but you can expand or alter it to meet your needs.
You can set up the /AcadJobs directory
to contain your drawing subdirectories. The drawing subdirectories
can contain other subdirectories that hold related support files
for a particular drawing type or job. The /AcadJobs/Job1/Support directory
can contain blocks and AutoLISP files specific to the drawing files
in /AcadJobs/Job1. Specifying support (with
no path prefix) in the Support path adds the support directory
within the current directory to the Support path. Notice that if
you use the Options dialog box to specify a directory, AutoCAD creates
a hard-coded path
to that directory. To use the relative naming
convention previously described, you must specify the Support path
with the /s switch on the command line.
See
To make sure that the required drawing directory is the current directory when you start AutoCAD, and that all files and subdirectories in that directory are easily accessible, you can create a program icon or a Start menu item that specifies the correct working directory for each job. This functionality works only if you set the AutoCAD system variable REMEMBERFOLDERS to 0.
You can use a batch program as an alternative to using icons or menus. With batch programs you can create new job directories automatically. The following batch program verifies that a specified directory exists, sets that directory to be current, and then runs AutoCAD.
@echo off
C:
if exist \AcadJobs\Jobs\%1 goto RUNACAD
echo.
echo *** Creating \AcadJobs\Jobs\%1
echo *** Press Ctrl+C to cancel.
echo.
pause
mkdir \AcadJobs\Jobs\%1
:RUNACAD
cd \AcadJobs\Jobs\%1
start C:\ AutoCAD\acad.exe
Using an ASCII text editor (such as Notepad), save the batch program to a file named acad.bat. Be sure to change the drive and directory names to match those on your system. Place this file in a directory that is on your system search path (for example, C:\winnt). You can run this batch program using the Run command on the Start menu or by double-clicking the file in Explorer. If you saved the file as acad.bat, use the following syntax:
where jobname is the name of the job directory to make current.