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: