Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Filling functionality gaps with FeatureScript -- Rib Feature, 3D Spline, fasteners, and more
ilya_baran
Onshape Employees, Developers, HDM Posts: 1,212
Onshape does not yet have every feature that we believe it should. While building features to our high standard of usability takes time, one of the uses of FeatureScript is providing immediate workarounds that get the job done, but may be less polished than what we'd consider shipping.
I'm collecting a few such workarounds here by posting the source code, which you can copy/paste into a Feature Studio and then either use as-is or customize.
I'll start with a feature that makes a 3D spline through a sequence of vertex selections and a feature that makes a surface from an uploaded csv file representing height data. Kori added a very nice rib feature, Cody added a point-driven body pattern, and Neil added some fastener features and a wave spring.
I'm collecting a few such workarounds here by posting the source code, which you can copy/paste into a Feature Studio and then either use as-is or customize.
I'll start with a feature that makes a 3D spline through a sequence of vertex selections and a feature that makes a surface from an uploaded csv file representing height data. Kori added a very nice rib feature, Cody added a point-driven body pattern, and Neil added some fastener features and a wave spring.
Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc
1
Comments
Code:
Code:
Code:
Code:
Linked[in]
You don't by any chance have an example as to the format for the rect array csv file?
Below is the code for a feature that will generate a hexagonal mesh in the interior of apart.
This makes the part both lighter, quicker to 3D print and uses less material.
The feature takes as input;
The part
The shell thickness
The hex size.
The preview option lets you see a quick preview of the hex layout. Unchecking preview actually generates the geometry.
Linked[in]
In the feature list there should be an eye controlling the visibility of the sketch. Graphically, you can select it and press 'y'.
edit:
If you are talking programmatically, follow what Neil does with the other sketches:
and add in the sketch for the pitch diameter (or simply remove the pitch diameter sketch code).
Linked[in]
Very useful, thanks!