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.
Failed to add custom feature "Expulsores" to toolbar.
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:
            
        
0    
            
Comments
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.
I could not find record of your case. Could you please try linking again and file bug with support right after that.