Computer Aided Automation

Full Version: Record a Solidworks macro - SOLIDWORKS VBA
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In this example we will discuss about “How to Record a Macro in Solidworks”
Once you open the Solidworks, Go to Tools -> Macro -> Record

[Image: 1.JPG]
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
[Image: 2.JPG]
Then Create a Circle and Extrude it.
[Image: 3.JPG]
After creating the Cylinder, Go to Tools -> Macro-> Stop and save your Macro
[Image: 4.JPG]
After saving the macro, close the part document (without saving it)
[Image: 5.JPG]
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

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