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.
Featurescript code writing
john_risher
Member Posts: 1 ✭
I would like to generate two functions but I'm having a hard time with the code writing to develop the features. One I would like to develop a feature that will allow me to put a lip around a part such as the inside of a phone case or something along those lines so that when I print the case on my 3D printer it will snap onto my phone. The other is a hinge feature so I can put a hinged cover on the case.
0
Comments
From https://www.onshape.com/featurescript, you could also access the "End Flange" feature that might be a good starting point for the lip feature.
On the hinge, here's a feature that evaluates points along a line :
https://cad.onshape.com/documents/091c5c3adf55c4a33077a666/w/433fa35e23c60bdf2c9915af/e/bf3cf5fb3182954d9e50cc1b
Using those points, along with several calls to fCylinder and opBoolean, it should be possible to make a custom hinge. Let us know if you have further questions or run into issues!