You can record operations performed with the SolidWorks user interface and replay them with SolidWorks macros.
A macro contains the equivalent calls to the API functions that were made when the operations were performed with the user interface. A macro can record your mouse clicks, menu choices, and keystrokes to play back later.
You can also create a new macro without recording one first.
To record a macro:
- Click Record/Pause Macro (Macro toolbar) or .
-
Perform the steps you want to record.
To pause while recording a macro, click
Record/Pause Macro (Macro toolbar) or . Click
Record/Pause Macro again to continue recording.
- When you are done, click Stop Macro (Macro toolbar), or click .
- In the dialog box, type a name for File name and click Save. (The .swp extension is automatically added to the filename.)