
The ECN No Name Newsletter is no longer being published. This is an archived issue.
[previous article] [next article]The first thing you might notice about AutoCAD is that it doesn't use a .acadrc file. Typically most UNIX programs use a dot file that includes all the startup commands. This file allows the user to customize the program using his or her preferences.
To get around this, you can write a shell script that takes the place of the .acadrc file. This shell script should contain the following variables.
Create a directory where you will want to keep drawing files created from AutoCAD. Before starting AutoCAD, cd to this directory.
Example using C shell.
#!/bin/csh -f
#
#So AutoCAD knows where to find the libraries
#
setenv LD_LIBRARY_PATH "/usr/lib: \
/usr/local/lib:/usr/openwin/lib"
#
#This is where I keep ALL my configuration files
#
setenv ACADCFG $HOME/configs
#
#This is where the AutoCAD software lives
#
setenv ACADSERVER ups.ecn.purdue.edu
#
#This where I keep all my drawings
#
cd $HOME/drawings
#
#Command used to fire-up AutoCAD
#
exec /usr/unsup/acad11/acad/acad
Some other files of interest are:
These files all exist in the standard distribution of AutoCAD. AutoCAD always looks in the current directory first for these files. If you want to change the behavior of AutoCAD, do so using the above mentioned files and keep them in your working directory.