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

+- Computer Aided Automation (https://www.computeraidedautomation.com)
+-- Forum: VBA Programming (https://www.computeraidedautomation.com/forumdisplay.php?fid=1)
+--- Forum: Solidworks VBA (https://www.computeraidedautomation.com/forumdisplay.php?fid=5)
+--- 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

1.[attachment=1]
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
2.[attachment=2]

Then Create a Circle and Extrude it.
3.[attachment=3]

After creating the Cylinder, Go to Tools -> Macro-> Stop and save your Macro
4.[attachment=4]

After saving the macro, close the part document (without saving it)
5.[attachment=5]

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

6.[attachment=6]
And open the newly created macro
7.[attachment=7]
As you can see that your Part Document is automatically generated
8.[attachment=8]