SECURELOAD (System Variable)

Controls whether AutoCAD loads executable files based on whether they are in a trusted folder.

Type:Integer
Saved in:Registry
Initial value:1, may be locked by the CAD administrator

To help protect against malicious code, these settings restrict the folder locations from where executable files are loaded.

Value

Description

0

Loads executable files from any location without displaying a warning. This option maintains legacy behavior, but is not recommended.

1

Loads executable files only if their location is in the trusted locations specified in the TRUSTEDPATHS system variable. Displays a warning during load requests from executable files in other locations.

2

Allows executable files to be loaded only if their location is in the trusted locations specified in the TRUSTEDPATHS system variable.

The executable file types affected by SECURELOAD include the following:

Important: The LEGACYCODESEARCH system variable controls whether searching for executable files includes the folder from which the program is started. The ACADLSPASDOC system variable determines whether the acad.lsp file is loaded into every drawing or just the first drawing opened in a session. AutoLISP files must be located in the Support File Search Path to be found, or else a relative path must be included in the Filename parameter when using the LOAD function.