Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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.


Custom feature referencing a geometry generated by another features?

ben_partouchben_partouch Member Posts: 113 PRO

Any recommendations for how to code a feature that can identify, for ex. pockets made by a specific extrude, and move translate the faces created by that extrude?
The idea is that instead of heaving to select all these pockets, the custom feature will select all faces (or other geometry) created by a specified feature.  

Hopefully that makes sense.
Thank you.


  • Options
    S1monS1mon Member Posts: 2,475 PRO
    Take a look at Selection fillet from @Evan_Reese for how to create an intelligent parametric selection like that.
  • Options
    ben_partouchben_partouch Member Posts: 113 PRO
    @S1mon Thank you, and @Evan_Reese
  • Options
    Evan_ReeseEvan_Reese Member Posts: 2,070 PRO
    Glad it's helpful! I'm sure there are smarter code structures to use, and I'd probably write that differently today, but the ideas should be the same. I also recommend just reading through every single type of query in the standard library documentation to get ideas for the kinds of logic you could use. My feature doesn't do them all. 
    Evan Reese / Principal and Industrial Designer with Ovyl
    Website: ovyl.io
Sign In or Register to comment.