SolidWorks allows equations to trigger macros by linking to embedded or external macro files. There are several steps to set this up: create the macro file, embed it in the design binder or link to its external location, create a text file with variable names that match the macro, import this text file to add the equation, and use "SwApp.RunMacro" to reference external macro files from equations on rebuild. This allows macros to automatically execute on each rebuild through equations in part or assembly templates.