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.

Edit parameter values through API - how?

leon_pootleon_poot Member, Developers Posts: 87 ✭✭✭
How can I edit parameter values of Features in a Part Studio?
I'd like to be able to change these through the API, as opposed to the user having to change it in the Part Studio for each and every Feature.
I can read them with "Get Feature Specs", but I don't see a way of changing the feature specs...

Have I missed an API function somewhere in the list?
"A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools." - Douglas Adams, Mostly Harmless
Tagged:

Best Answer

  • leon_pootleon_poot Member, Developers Posts: 87 ✭✭✭
    Answer ✓
    Sorry that I missed your comments this weekend, @mbattistello and @joe_dunne. Thanks anyways.

    We figured it out, naturally "Update Feature" is the key API function.
    Deep down in the feature definition ("feature.message") the parameters are there.
    "A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools." - Douglas Adams, Mostly Harmless

Answers

  • mbattistellombattistello Member, Developers Posts: 51 ✭✭
    @leon_poot its in the docs on the dev site for the API. Look under the Feature List API. Towards the end they go thru this exact usage.
  • joe_dunnejoe_dunne Onshape Employees, Developers, csevp Posts: 198
    Drop me an email and I can point you to some information

    Jdunne@onshape.com




    Joe Dunne / Onshape, Inc.
  • leon_pootleon_poot Member, Developers Posts: 87 ✭✭✭
    Answer ✓
    Sorry that I missed your comments this weekend, @mbattistello and @joe_dunne. Thanks anyways.

    We figured it out, naturally "Update Feature" is the key API function.
    Deep down in the feature definition ("feature.message") the parameters are there.
    "A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools." - Douglas Adams, Mostly Harmless
Sign In or Register to comment.