You have the option to enable and disable macros by default. This protects your work and computer from running dangerous malicious code unexpectedly. When working with macros, it is important to be wary of the risks involved with their vulnerabilities. Only run known macros from trustworthy sources.
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 tabSetting 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 in Revit. You will still be able to see, edit, and build the code, but modifications will not change the current module status.
Click Manage tabYou 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.
To help you identify the current status of macro security, you are given status icons and notification prompts in the lower right corner of the Revit application frame.
Document-level Macro Status and Warnings