Derived via FS adds mate connectors that don't exist when derived directly as feature

vanowm
vanowm Member Posts: 139 ✭✭
edited July 2025 in FeatureScript

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:

image.png

There is no mate connectors exist.

However, when derive this part via FS, it also adds mate connector for the hole:

image.png

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);
    }
    
);

Comments