SAFEMODE (System Variable)

 
 
 

Indicates whether executable code can be loaded and executed in the current AutoCAD session.

(Read-only)
Type: Integer
Saved in: Not-saved
Initial value: 0

This system variable is controlled by the /safemode startup switch, which should be used only in emergency situations for disabling malicious code.

0

Allows executable code to be executed

1

Prevents executable code from being executed

NoteDisabling executable code will prevent Express Tools and some AutoCAD command tools from running. It will also prevent copying and pasting AutoLISP code into the Command window.