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.
Create group/selection of entities/bodies to be used as input
nicolas_mattia
Member Posts: 2 ✭
Hi all,
I'm trying to create a selection or group of entities from FeatureScript, so that other (non-custom) features can use it as input.
For context, I've written a custom feature that generates many surfaces:
And I would then like to be able to use the "Thicken" feature on those surfaces. I can only come up with those two options:
1. Manually select all surfaces
2. Create a custom feature that selects the surfaces and uses opThicken
Option 1 is not ideal because every time I change my custom feature (creating many surfaces) then I need to re-select all the surfaces. Option 2 seems overkill since it's basically just the "Thicken" feature.
I've also tried creating a composite part with all the surfaces but unfortunately the Thicken feature does not allow a composite part as an input.
Any help appreciated! It's my first forum question, hope this is proper etiquette.
Link to document: https://cad.onshape.com/documents/a3b61bae25f3452f1074e9ae/w/b54732bb3b931a0333f679c3/e/700532349601bc351400e6d6
I'm trying to create a selection or group of entities from FeatureScript, so that other (non-custom) features can use it as input.
For context, I've written a custom feature that generates many surfaces:
And I would then like to be able to use the "Thicken" feature on those surfaces. I can only come up with those two options:
1. Manually select all surfaces
2. Create a custom feature that selects the surfaces and uses opThicken
Option 1 is not ideal because every time I change my custom feature (creating many surfaces) then I need to re-select all the surfaces. Option 2 seems overkill since it's basically just the "Thicken" feature.
I've also tried creating a composite part with all the surfaces but unfortunately the Thicken feature does not allow a composite part as an input.
Any help appreciated! It's my first forum question, hope this is proper etiquette.
Link to document: https://cad.onshape.com/documents/a3b61bae25f3452f1074e9ae/w/b54732bb3b931a0333f679c3/e/700532349601bc351400e6d6
0
Comments
Since you're generating the surfaces within the featurescript, you could easily reference them when creating the Thicken from within that same featurescript.
This way the output is a single surface body that is easily selected as an input for Thicken. I'm guessing there would need to be a cleanup cut to get rid of the connecting material, but that's still easier than manually selecting a bunch of surfaces every time the feature changes.
https://forum.onshape.com/discussion/18616/implement-selection-filters-like-evan-reeses-selection-fillet-or-selection-draft-everywhere
https://forum.onshape.com/discussion/10299/associative-and-multyconditional-entity-selection-for-create-selection-tool