Computer Aided Automation
HOW to Record a Solidworks macro - Printable Version

+- Computer Aided Automation (
+-- Forum: VBA Programming (
+--- Forum: Solidworks VBA (
+--- Thread: HOW to Record a Solidworks macro (/showthread.php?tid=3)

HOW to Record a Solidworks macro - CAA - 07-27-2019

In this example we will discuss about “How to Record a Macro in Solidworks”

Once you open the Solidworks, Go to Tools -> Macro -> Record

Then start your project, in this example we will be making a cylinder (Draw circle and extrude it to Cylinder)

Create a New Part Document

Then Create a Circle and Extrude it.

After creating the Cylinder, Go to Tools -> Macro-> Stop and save your Macro

After saving the macro, close the part document (without saving it)

Now, you have created your macro for creating a cylinder. (Dimensioning will be discussed in next post)

In order to use the macro, go to Tools->Macro->Run

And open the newly created macro
As you can see that your Part Document is automatically generated