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.
Derived via FS adds mate connectors that don't exist when derived directly as feature

I'm trying to understand the reason and how to avoid deriving mate connectors via FS.
I have simple part studio with a cube and hole:
There is no mate connectors exist.
However, when derive this part via FS, it also adds mate connector for the hole:
Why this happening and how to avoid these mate connectors?
Thank you!
P.S.
My FS:
FeatureScript 2716; import(path : "onshape/std/common.fs", version : "2716.0"); base::import(path : "8da0e6444c771cd3d2fd6b25", version : "7ec130d1aa4cd83526a447a8"); annotation { "Feature Type Name" : "Derived FS" } export const example = defineFeature(function(context is Context, id is Id, definition is map) precondition { annotation { "Name" : "Hole size"} isLength(definition.hole_size, {(millimeter) : [0.01, 3, 1e5]} as LengthBoundSpec); } { var instantiator = newInstantiator(id + "track"); // Add it to your Part Studio var query = addInstance(instantiator, base::build ,{ "configuration": { "hole_size": definition.hole_size } }); instantiate(context, instantiator); } );
0
Comments
If you look at the definition for addInstance there is an option to provide a query for what will be included in the instantiation - "partQuery"
By default it brings in everything, but you can limit it with a query like qAllSolidBodies()
Custom FeatureScript and Onshape Integrated Applications
Thank you!
This works: