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.

Options

Failed to add custom feature "Expulsores" to toolbar.

FdaFda 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

  • Options
    NikNYCNikNYC Member Posts: 68 ✭✭
    Same here in the last week or two for any custom feature I try to add from community examples.
  • Options
    lanalana Onshape Employees Posts: 696
    @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.

  • Options
    lanalana Onshape Employees Posts: 696
    @Fda
    I could not find record of your case. Could you please try linking again and file bug with support right after that.
Sign In or Register to comment.