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 for Snap Fit 3D Printed Enclosures
daniel_splawski
Member Posts: 66 ✭✭
What would be the easiest way to create a script that would add the rim and male/female snap connectors to an enclosure? Could you recommend an existing FeatureScript that would make a good starting point?
Ideally it could be as simple as selecting the male face and corresponding female face of a split hollow shape, as well as the points where the snap connectors will be added. An example of the design is shown in the video below.
https://youtu.be/pjtiWuGUnlI?t=21m
Ideally it could be as simple as selecting the male face and corresponding female face of a split hollow shape, as well as the points where the snap connectors will be added. An example of the design is shown in the video below.
https://youtu.be/pjtiWuGUnlI?t=21m
0
Best Answer
-
ilya_baran Onshape Employees, Developers, HDM Posts: 1,211I think Neil's snap hook example (here: https://cad.onshape.com/documents/5738c1f6e4b06c68b35e66aa/v/668674c951100573af45a415/e/77103724366528a36672a978 )
is a good reference for the types of things you'll want to do.
The way I would recommend going about it is separating the project into several features, which can be debugged and used individually (for instance, male rim, female rim, male snap connector at given point, etc.) and then after they work, call them (features are just a special kind of function) from the master "automatic" feature.
This project looks useful and I think FeatureScript is a good fit for it -- please post on the forum if you need help or to show off the result!Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc5
Answers
is a good reference for the types of things you'll want to do.
The way I would recommend going about it is separating the project into several features, which can be debugged and used individually (for instance, male rim, female rim, male snap connector at given point, etc.) and then after they work, call them (features are just a special kind of function) from the master "automatic" feature.
This project looks useful and I think FeatureScript is a good fit for it -- please post on the forum if you need help or to show off the result!
https://cad.onshape.com/documents/7826438269e2fe5bc86ec8b9/w/a496f88628922016bcbf14a1/e/6e45f26eeddeed5cfa861e8a