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.

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

vanowmvanowm Member Posts: 81 ✭✭
edited July 29 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

Sign In or Register to comment.