How to model gears using VBA
|If you’ve joined my email course or have been reading my blog posts then hopefully you’ve been having some success improving your CATIA efficiency by creating useful macros.
Maybe you’re ready to take it up a notch.
One of my students did and now we’ve collaborated to help you out as well.
Alireza Reihani created an amazing VBA project to draw four different types of gear using a complex user form. We’ve turned his project into a step-by-step tutorial that you can now go through yourself!
This extremely detailed, 120+ page tutorial will show you how to:
- Sketch and model different types of gears in CATIA V5
- Create a detailed userform with command buttons, combo boxes, etc.
- Use subroutines and functions
- How to break a complex project down into smaller, more manageable parts
- Anticipate and check for user errors in your program
After going through the guide you’ll have a fully functional program that you’ll be able to show off to potential employers. Watch a video of the final program in action below:
Download a free sneak preview of this tutorial here: https://www.scripting4v5.com/gear-tutorial
One Comment
My gear creation code has a problem with this paragraph, how can I fix it?
Private Sub CmdDraw_Click()
ProfileError = False
Call HidePlanes
Call Common
End Sub
Error message dialog box: Variable not defined (in variable ProfileError = )