When you open a part, the SOLIDWORKS software can detect embedded VBA code such as equations and macros and display a warning so that you can decide whether to execute the embedded code.
In previous versions of SOLIDWORKS, equations that contained a predefined set of mathematical functions and operators could be evaluated using a built-in VC++ function. These equations are assumed to be safe and to not require authorization.
Other code, such as embedded VBA code (also known as active content), could potentially be less secure. SOLIDWORKS lets you choose whether to:
- Display a warning so that you can authorize the execution of the code.
- Run the code automatically when you open or rebuild a model that contains it.
A Warn about active content setting on the Messages/Errors/Warnings page of the System Options dialog box is selected by default. If the software finds an active content equation or macro when you open or rebuild a model:
- The What's Wrong dialog box appears, identifying the feature containing the equation or macro.
An Enable Active Content button lets you enable the equation or macro that triggered the message.
- A warning icon appears on the document name at the top of the FeatureManager design tree and on the parent feature whose child issued the warning.
Selecting active content removes these icons.
If you clear the Warn about active content setting, the software treats all active content as safe and runs it without displaying a warning message.