TRUSTEDPATHS (System Variable)

Specifies which folders listed in the Support File Search Path have permission to load and execute files that contain code.

Type:String
Saved in:Registry
Initial value:Varies

To minimize the possibility of loading and executing malicious code, always set the TRUSTEDPATHS system variable to unique, read-only folders where your authorized applications are located. This includes the following file types:

Note: The AutoCAD install folder, the Plugin folder (%ProgramData%\Autodesk\ApplicationPlugins), and all their subfolders are always implicitly trusted.

Valid strings include the following:

Note: When using AutoLISP, note that TRUSTEDPATHS does not add a path to the Support File Search Path. It simply provides permission use to an existing support path. Thus, an AutoLISP file must be located in a path listed in the Support File Search Path. In some circumstances, it might be more convenient to specify the relative file path in the Filename parameter when using the LOAD function.
Note: Beginning with AutoCAD 2013 SP1, the reserved acad2013.lsp and acad2013doc.lsp files and their successors are loaded only from their default installation folders: <install folder>\Support and <install folder>\Support\<language> respectively.