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.

having trouble with setting configurations for `addInstance()`

kyle_altendorfkyle_altendorf Member Posts: 20
var instance = addInstance(
    instantiator,
    baseUnitStudio::build,
    {
        "configuration" : { "is_left" : false },
        "transform"     : transform(vector(x * definition.xd, y * definition.yd, 0 * inch))
    }
);

https://cad.onshape.com/documents/31d9f3436d1f6286f056967a/v/cbf25e31bb40ade74e9aa036/e/9cbee39ae72c63645cafbc53

I am attempting to set the is_left etc configuration checkboxes when instantiating a grid of instances of the base_unit part studio.

The is_left seems to work when I manually set it but I don't seem to be doing the right thing in the featurescript for setting that configuration value.

Thanks for any guidance.

Cheers,

-kyle

Best Answer

  • kyle_altendorfkyle_altendorf Member Posts: 20
    Answer ✓

    Turns out I had renamed the parameter but had not changed it's ID. Updating the ID resulted in it working. oops…

Answers

  • kyle_altendorfkyle_altendorf Member Posts: 20
    Answer ✓

    Turns out I had renamed the parameter but had not changed it's ID. Updating the ID resulted in it working. oops…

Sign In or Register to comment.