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

what part of the Variable code creates "Update all references"?

Evan_ReeseEvan_Reese Member Posts: 2,066 PRO
I'm looking at this code here, but not seeing anything in the editing logic or UI that seems related to this. Am I in the wrong place? I'm trying to figure out how to add this functionality to custom features too.
Evan Reese / Principal and Industrial Designer with Ovyl
Website: ovyl.io

Best Answer

  • Options
    _anton_anton Member, Onshape Employees Posts: 276
    Answer ✓
    Good question - it's a bit of special UI that appears if you have UIHint.VARIABLE_NAME.

Answers

  • Options
    _anton_anton Member, Onshape Employees Posts: 276
    Answer ✓
    Good question - it's a bit of special UI that appears if you have UIHint.VARIABLE_NAME.
  • Options
    Evan_ReeseEvan_Reese Member Posts: 2,066 PRO
    edited February 2021
    Sneaky! Thanks, Anton. This is kind of a bummer, because it means I can only update the names of variables that are driven by a single string parameter, right? I'd love to get my Manufacturing Variables tool working this way when someone edits the prepended text. Am I right that I can't do that, because the string param only defines part of the variable name?

    Evan Reese / Principal and Industrial Designer with Ovyl
    Website: ovyl.io
  • Options
    ilya_baranilya_baran Onshape Employees, Developers, HDM Posts: 1,178
    Yes, that's correct, sorry.
    Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc
  • Options
    Evan_ReeseEvan_Reese Member Posts: 2,066 PRO
    Yes, that's correct, sorry.
    A bummer, but the functionality didn't even exist a few months ago, so I'm not too upset  :D thanks for clarifying.
    Evan Reese / Principal and Industrial Designer with Ovyl
    Website: ovyl.io
Sign In or Register to comment.