Parametric 3D CAD makes the life of the engineer so much better.
It doesn’t necessarily make it easier, nor does the first iteration of a design go much faster. But revisions will happen. And when they do, parametric designs will certainly be updated significantly quicker than 2D AutoCAD designs or drawings by hand.
But sometimes you just want to do something that was a piece of cake when drawn by hand. Adding a few milliliters of oil to the bill of materials (BOM) of a gearbox assembly is such a matter.
It can be done however. I’ll show you how to do it manually and by using the API.
Macros can be great for replacing repetitive manual labor (usually in the form of mindless clicking) with robotized micro-tasks. If you can think of a task that you have to do often enough and if it can be standardized, you can probably automate it.
You can even add buttons to your SolidWorks toolbar. But sometimes they just stop working. I get a help request for this every week or so. Luckily the solution is very simple.
This is some weird behavoir of SolidWorks that I have come to understand and accept over time. It might not even be SolidWorks’s fault, but that’s where I have encountered it and where it has bugged me so many times.
You may notice this non-saving behavior when you are working on a macro in Visual Basic for Applications, or VBA for short. You will click on save and you assume the macro has been stored for all eternity. Then you close the editor and you get the following pop-up: