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 ![Tool_Record_Pause_Macro.gif](doc1292868488129.image)
(Macro toolbar) or . Click
Record/Pause Macro ![Tool_Record_Pause_Macro.gif](doc1292868488129.image)
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.)