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"?

EvanReeseEvanReese Member, Mentor Posts: 2,135 ✭✭✭✭✭
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

Best Answer

  • _anton_anton Member, Onshape Employees Posts: 410
    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: 410
    Answer ✓
    Good question - it's a bit of special UI that appears if you have UIHint.VARIABLE_NAME.
  • EvanReeseEvanReese Member, Mentor Posts: 2,135 ✭✭✭✭✭
    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
  • ilya_baranilya_baran Onshape Employees, Developers, HDM Posts: 1,212
    Yes, that's correct, sorry.
    Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc
  • EvanReeseEvanReese Member, Mentor Posts: 2,135 ✭✭✭✭✭
    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
Sign In or Register to comment.