The default folder structure for program and support files is designed to efficiently organize those files into logical groups.
If the default organization of program and support files does not suit your needs, you can change it. However, some applications look for certain files in specific locations, and you should verify that modifications do not conflict with the requirements of those applications. Without the full path, including drive and folder, the program can locate only those files that are found in its library search paths.
The program references the user profile of the operating system to identify where local and roamable customizable files should be stored. The locations of the local and roamable folders can be accessed using the following system variables:
Beginning with AutoCAD 2013 SP1-based products on Windows and AutoCAD 2014 for Mac, the reserved acad<release_number>.lsp and acad<release_number>doc.lsp files and their successors are loaded only from the product's default installation folders. Depending on the setting of the SECURELOAD system variable, the TRUSTEDPATHS system variable specifies the folders from where AutoCAD-based products can load and execute other files that contain code. In addition, the LEGACYCODESEARCH system variable controls whether the Start In folder will be searched for executable files.
The following AutoLISP sample code defines the CUSTFILES command, and opens Windows® Explorer or File Explorer to the location where roamable customizable files were installed.
(defun c:custfiles () (command "shell" (strcat "explorer \"" (getvar "roamablerootprefix") "\"") ) (princ) )
The library search path specifies where the program searches for files when you do not specify a full path name, as follows:
Depending on the current environment, two or more folders may be the same.
If a file is not in this search path, you must specify its full or its relative path name and file name before the program can find it. For example, if you want to insert the part5.dwg file into your current drawing and it is not in the library search path, you must specify its full path name or a relative path name based on a valid path in the library search path. A relative path name is shown here:
Command: -insert
Enter block name or [?]: /files2/olddwgs/part5
The program uses tree-structured folders and subfolders. It is recommended that you keep supplemental files, such as AutoLISP applications (not in AutoCAD LT), customization files, or third-party applications, separate from the installed program and support files. This makes it easier to track possible conflicts and to upgrade each application without affecting the others.
The default location for the program is in the Program Files folder on Windows and Applications on Mac OS. You can create a new folder on the same level (for example, /AcadApps) and store custom programs, customization files, and other third-party applications in subfolders on the next level. If you want to maintain multiple drawing folders (for separate job files), you can create a folder such as /AcadJobs with subfolders for each job.
When you enter a command, the application goes through a series of steps to evaluate the validity of the command name. A command can be
You can enter a command at the Command prompt or start it from the user interface. Commands can also be started from a script file or by an AutoLISP, ObjectARX, or Managed .NET application.
The following list describes the search order to validate a command name.