Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- 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.
Annotation Default value from other Annotation
emagdalenaC2i
Member, Developers, Channel partner Posts: 867 ✭✭✭✭✭
It is possible to assign as default value of an annotation the value assigned in other annotation?
annotation { "Name" : "Tipo de soldadura", "UIHint" : ["REMEMBER_PREVIOUS_VALUE", "SHOW_LABEL"] }
definition.weldType is WeldType;
annotation { "Name" : "Lado opuesto", "UIHint" : "REMEMBER_PREVIOUS_VALUE", "Default" : false }
definition.buttOtherSide is boolean;
if (definition.buttOtherSide)
{
annotation { "Name" : "Tipo de soldadura", "UIHint" : ["REMEMBER_PREVIOUS_VALUE", "SHOW_LABEL"], "Default" : definition.weldType }
definition.weldType2 is WeldType;
}
}
Un saludo,
Eduardo Magdalena C2i Change 2 improve ☑ ¿Por qué no organizamos una reunión online?
Partner de PTC - Onshape Averigua a quién conocemos en común
Eduardo Magdalena C2i Change 2 improve ☑ ¿Por qué no organizamos una reunión online?
Partner de PTC - Onshape Averigua a quién conocemos en común
1
Comments
-
If the other value has been edited by the user? Editing Logic. There are a few posts on it in the forum if you need help. Spur Gear uses it.
Senior Director, Technical Services, EMEA2 -
Rigth, Editing logic could work
ThanksUn saludo,
Eduardo Magdalena C2i Change 2 improve ☑ ¿Por qué no organizamos una reunión online?
Partner de PTC - Onshape Averigua a quién conocemos en común0 -
You can set logic in the "editing logic" function to test to see if buttOtherSide is false then set value. If not, do not set value (otherwise you could never set the second value different from the first).
Senior Director, Technical Services, EMEA1 -
Works fine! ThanksUn saludo,
Eduardo Magdalena C2i Change 2 improve ☑ ¿Por qué no organizamos una reunión online?
Partner de PTC - Onshape Averigua a quién conocemos en común1 -
I think Onshape will have an awesome Weld FeatureScript soon...

You are welcome to collaborate https://github.com/mbartlett21/weld-featurescriptUn saludo,
Eduardo Magdalena C2i Change 2 improve ☑ ¿Por qué no organizamos una reunión online?
Partner de PTC - Onshape Averigua a quién conocemos en común2

