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.
In FS dialog annotations UIHint-opt "show_expression" seems not to work, or is my syntax wrong?
anton_berta
Member Posts: 3 ✭
I use
...
annotation{"Name" : "Size ", "UIHint" : "SHOW_EXPRESSION"} isLength(definition.X, ...);
...
But at runtime, if i bind this parameter to a variable by inputting #test, a variable defined before, into the field of this parameter,
after leaving this field, there is always shown the evaluated value of #test, for example 10,
but the field never shows the expression "#test" as i expect the UIHint "SHOW_EXPRESSION" to work.
Standard Library Documentation for uihints says:
What am i doing wrong?
You can check this in my project:
https://cad.onshape.com/documents/43806bae9008bff220d2eb0c/v/9c15468693025089c46e334b/e/0626a1d837b6b21f6ceefcff
FS-lines: 19, 22, 25 and dialog fields X and Y for size input.
...
annotation{"Name" : "Size ", "UIHint" : "SHOW_EXPRESSION"} isLength(definition.X, ...);
...
But at runtime, if i bind this parameter to a variable by inputting #test, a variable defined before, into the field of this parameter,
after leaving this field, there is always shown the evaluated value of #test, for example 10,
but the field never shows the expression "#test" as i expect the UIHint "SHOW_EXPRESSION" to work.
Standard Library Documentation for uihints says:
SHOW_EXPRESSION;
If an expression (like #foo or 1/4 in) is entered, always show the expression, and never the resulting value. What am i doing wrong?
You can check this in my project:
https://cad.onshape.com/documents/43806bae9008bff220d2eb0c/v/9c15468693025089c46e334b/e/0626a1d837b6b21f6ceefcff
FS-lines: 19, 22, 25 and dialog fields X and Y for size input.
0