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.

Toggling Modes Updating Stored Values?

S1monS1mon Member Posts: 3,985 PRO

I'm reworking the standard Trim curve feature. One trick I'm trying to make work is to allow the user to trim/extend "up to entity" and then switch to "blind/distance" mode where the value of that blind distance comes from the up to entity, but now it's draggable/editable.

As an example, let's say I've blind/extended a curve by 50mm. Then I switch to "up to entity" to a plane, and internally it knows that it's 79.846659 away. Then I switch back to blind. I'm having trouble getting it to now use 79.846659. Instead it returns to 50mm. What's the right design pattern to do something like this? Are there good first or third party examples of this kind of behavior?

Is there something weird about doing this kind of thing in a feature that requires a different editing action so that things remain deterministic?

Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn

Tagged:

Comments

  • Konst_ShKonst_Sh Member Posts: 129 PRO

    In editing logic function you will need to check if user switching from up to distance method to blind and resed blind depth in that case, might also add a checkbox or button to ensure that this behaviour is intentionally triggered

Sign In or Register to comment.