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 means "Convert to expression/text"at the Tag Profile feature

Henk_de_VlaamHenk_de_Vlaam Member, Developers Posts: 247 ✭✭✭

In Tag Profile "Convert to expression/text" appears under the RMK in the Value field of Additional columns. Can someone explain what this function does?

Henk de Vlaam (NL)

Comments

  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,814

    It appears on any checkbox. You can do conditionals like #Length>1m?true:false

    Senior Director, Technical Services, EMEA
  • MichaelPascoeMichaelPascoe Member Posts: 2,173 PRO
    edited January 14

    More clarification for future users wondering what conditionals and expressions are:
    You can convert most inputs to expression. This will allow you to us a variable as your input. You can also put conditionals or expressions as the input like Neil mentioned.

    Variables can be measured or manually created in multiple ways: Variable feature, Variable table, Custom features, and Variable studio. variable features, custom features, and variable tables also allow you to use expressions as the variable itself. So you can chain together variables and expressions to make complex logic for your part studio.

    Expressions also allow you to use some FeatureScript: constants, standard functions, and custom functions. You can store function in variables, then use those functions in expressions myVariable set to function(between, targetSpacing) {return ceil(between/targetSpacing);} to call this, you would type the variable name and then feed it the inputs: #myVariable(100m, 8m). You can also store things like maps and arrays within variables myVariable set to {"red" : [1, 0, 0], "green" : [0, 1, 0], "blue" : [0, 0, 1] } then call on those variables to get values #myVariable["red"] . This unlocks quite a few different workflows with Onshape.


    Learn more about the Gospel of Christ  ( Here )

    CADSharp  -  We make custom features and integrated Onshape apps!   Learn How to FeatureScript Here 🔴
Sign In or Register to comment.