Macro Settings in Revit.ini

In the Revit.ini file, settings in the [Macro] section correspond to settings on the Macros tab of the Options dialog.

AppSecurity

Corresponds to the Application Macro Security Settings toggle.

Type = integer

Valid values: 0 = enable (default), 1 = disable

UIDocSecurity

Corresponds to the Document Macro Security Settings toggle.

Type = integer

Valid values: 0 = ask before enabling document macros (default), 1 = disable, 2 = enable

Example

[Macro]
AppSecurity=1
UIDocSecurity=0