0 Members and 1 Guest are viewing this topic.
I'm not sure if SolidWorks has something similar, but Fusion 360 also has a python and C++ API that you can use to add custom features. This is supported even in the free version. I used this to write a script for generating rivet seams from sketch lines. It's pretty intuitive and they give you plenty of examples to study off. Overall I'm impressed by what Fusion 360 offers at no cost.
..... there's a lot of features in SolidWorks that allow you to copy a feature along a path. .....Jeff
Writing scripts, or being able to write scripts is helpful, but there's a lot of features in SolidWorks that allow you to copy a feature along a path. In SW, you just create a path as a separate sketch. Then you create the feature (rivet, bolt head, etc...), select that feature and then select "Curve driven Pattern", then tell it how many to copy/drive along that curve. Easy peasy...Never done a script in SW though. The old 2D AutoCAD, MatLab and Excel, yes, but not SW. Never had the need to.JeffJeff
....I use it as part of my script. ....
Do you have an example of a script that you can post. Not all the steps but what the script looks like? I'm interested in how this works (I'll google also to see if there is YouTube on it). Thanks,SumnerUPDATE: Just looked at a YouTube where they used Copilot to write a Python script. Pretty amazing but when I asked it to write a script for a 1 inch cube I got a body .7?? x .7?? x .3?? instead but probably something I did on my part. Start to stop was less than a minute for me to do that never having done it before so I can see there is a lot of potential there for some applications.