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.
Feature script for filling in missing faces to fix faulty topology.

Hello,
I want to create a feature script that let's me select bodies with missing faces (faulty topology), i.e. surfaces, and automatically have these missing faces filled. So far I came up with the following feature script:
- https://cad.onshape.com/documents/7636bb7733c1c2c502d0810b/w/c9b207aa5d8f3be062fdb8ac/e/65be33586f5da95b0cc2559f
I'm able to create the missing faces just fine, but unfortunately I'm struggling at combining the creates faces with the existing surfaces to get body. Any help would be greatly appreciated.
Tagged:
0
Answers
Try something like this instead. Note this is not optimized, i simply took your code and made it work. There are better and are more shorthand ways to do all of this, but this should get you going:
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴
Don't forget to complete Onshape's FeatureScript Fundamentals Course.
Also check out the CADSharp FeatureScript Course.
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴