SOLIDWORKS API
Help
VBA Macro Files and Macro Features
Macro features that use VBA macros to define the macro
feature functions must reside in SOLIDWORKS VBA macro files (*.swp).
Each function:
For example:
Function swmRegen(app As Variant, part As
Variant, feature As Variant) As Variant