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.

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

EvanReese
EvanReese Member, Mentor Posts: 3,059 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
The Onsherpa | Reach peak Onshape productivity
www.theonsherpa.com

Best Answer

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

Answers

  • _anton
    _anton Member, Onshape Employees Posts: 550 image
    Answer ✓
    Good question - it's a bit of special UI that appears if you have UIHint.VARIABLE_NAME.
  • EvanReese
    EvanReese Member, Mentor Posts: 3,059 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
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • ilya_baran
    ilya_baran Onshape Employees, Developers, HDM Posts: 1,273 image
    Yes, that's correct, sorry.
    Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc
  • EvanReese
    EvanReese Member, Mentor Posts: 3,059 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
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com