Failed to add custom feature "Expulsores" to toolbar.

Fda
Fda Member Posts: 42 ✭✭

How to create featurescript with which you can work on other projects and without error of:
-> Failed to add custom feature "Expulsores" to toolbar.



</code>annotation { "Feature Type Name" : "RESTAR PIZAS"  }// para que la imangen valga tine que ser un .sgv<pre class="CodeBlock"><code>export const myFeature = defineFeature(function(context is Context, id is Id, definition is map)
    precondition
    {
        // Define the parameters of the feature type

        annotation { "Name" : "Restar a", "Filter" : EntityType.BODY  } //: EntityType.BODY, "MaxNumberOfPicks" : 1 
        definition.bodie_1 is Query;
    

        annotation { "Name" : "Este solido", "Filter" : EntityType.BODY }
        definition.bodie_2 is Query;

    }
    { // Define the function's action

        var bodie_1 = definition.bodie_1;// EL PRIMER SOLIDO RETAR AL OTRO 
        
        var bodie_2 = definition.bodie_2;
        ////////////////////////////////////////////////////////////////
        // Una pieza sustrae material a otra por estar intersecionadas
        //
        opBoolean(context, id + "boolean1", {
                    "tools" : bodie_1,
                    "targets" : bodie_2,
                    "operationType" : BooleanOperationType.SUBTRACTION,
                    "keepTools" : true,
                });


    });
Tagged:

Comments

  • NikNYC
    NikNYC Member Posts: 68 ✭✭
    Same here in the last week or two for any custom feature I try to add from community examples.
  • lana
    lana Onshape Employees Posts: 782 image
    @nik_willmore
    I can see that it is a feature 'transformPattern' already in your toolbar that causes failures. I'm pulling a bug to fix it on our side, but in meantime you can delete transformPattern from the toolbar and try linking again.

  • lana
    lana Onshape Employees Posts: 782 image
    @Fda
    I could not find record of your case. Could you please try linking again and file bug with support right after that.