When working with macros, it is important to be wary of the risks involved with their vulnerabilities. Only run known macros from trustworthy sources.
You have the option to enable and disable macros by default. This protects your work and computer from running dangerous malicious code unexpectedly.
Setting Application-level macro security
Disabling Application-level macros restricts access to both the Run and StepInto tools on the Macro Manager. You will still be able to see, edit, and build the code, but modifications will not change the current module status.
Click Manage tabMacros panel Macro Security.Setting Document-level macro security
Disabling document-level macros restricts access to both the Run and StepInto tools on the Macro Manager for any project opened inRevit. You will still be able to see, edit, and build the code, but modifications will not change the current module status.
Click Manage tabMacros panel Macro Security.You should avoid the Enable document macros setting if possible. You will not be warned when opening a document about macros and potentially dangerous and malicious code that can run. It is recommended that you use Ask before enabling document macros, if you are not familiar with Revit macros or frequently open projects from unfamiliar sources. The Enable document macros setting should only be used when you know the source of the embedded macros.
Macro Security Setting | Status Icon | Notification when Opened |
---|---|---|
Enable document macros | ||
Disable document macros | ||
Ask before enabling document macros | User-defined. | A warning dialog prompts you to either enable or disable the macros. The resulting answer displays the correct icon. This is the default setting. |