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

in General
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)
0
Comments
It appears on any checkbox. You can do conditionals like
#Length>1m?true:false
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 tofunction(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 variablesmyVariable
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 🔴