Creating a SOLIDWORKS Macro Template
A SOLIDWORKS macro template is a SOLIDWORKS macro that lets you specify parameter values when you schedule it as a custom task in SOLIDWORKS Task Scheduler. A SOLIDWORKS macro template is a text file that typically contains Visual Basic code, SOLIDWORKS API calls, and token names. When you schedule a SOLIDWORKS macro template to run as a custom task in SOLIDWORKS Task Scheduler, you specify the parameter values to substitute for the token names.
Token names can be either text strings or numerics. They are formatted as follows:
Type of Parameter | Format of Token Name |
---|---|
String | $$$<token_name>$$$ |
Number | ###<token_name>### |
A SOLIDWORKS macro template must have a .swb filename extension.
To create a macro template: