Cool! Thanks for sharing.
I just tried it. All I get is 1 3d curve sketch. What is going on?
The 3D Curve will be the path of a SweptCut Feature. And this is the most innovative of this macro. This 3D curve is driven by a equation developed by me.
The 2D Sketch needs to be completed, it holds an involute curve driven by equation. You must close section, with the addedum circle, that depending of number of teeth and pressure angle, sometimes is bigger than base circle.
You need to create your own wheel blank, to cut with this swept, and once there make a pattern with all number of teeth.
Finally, this is just something aproximated. The real way to make a wheel gear is more complicated. You need to bear in mind the normal module, place the 2D sketch in a plane perpendicular to the helix. Wheels are made with a bigger diameter tool than the PCD worm, etc..., different shape (not involute profile)
Unfortunately, I get this when running the macro:
Pressing 'Debug' shows this:
Is this of any help?
1. Created a new part (it does not seem to matter)
2. Tools > Macro > Run > (select the Involute.3.swp file)
-> Dialog pops up.
3. Pushed OK (default values)
- something added to the part
- the error dialog
This happens on Solidworks 2019 Beta 3. Unfortunatly, I am not able to test with SW 2018. Would just want to know whether I am trying to run it the right way:
Asko Kauppi wrote:
This happens on Solidworks 2019 Beta 3.
Please no discussions related to beta over here. Kindly post your questions/issues in beta forum only.
Thanks for your interest.
Macro works well in 2018, haven't got the chance to try it on 2019.
You can try to debug it, to see where it cracks.
In that point it is building the 2D Sketch, it looks like the involute hasn't been created, for any reason, you can scroll the yellow arrow upwards and query all the objets if are set to Nothing or what?
Anyway, the 2D sketch is not the most interesting, you could skip that ant run the last part of the code, that is the 3D Curve.