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.

Annotation Default value from other Annotation

emagdalenaC2iemagdalenaC2i Member, Developers, Channel partner Posts: 863 ✭✭✭✭✭
edited December 2018 in FeatureScript
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

Comments

Sign In or Register to comment.