Variable name as Value
Hello There,
I am new to Onshape, I came from Shapr3D, because of much bigger compexity of SW (sadly app is not that good), and I just discovered magic of variables and I really like it a lot,
Now I am working on my own frames, I did quite nice setup for rectangular profiles. And I want to have parametric text in Cut list.
Is it possible to have Column in cut list with Value that is changed regard the dimensions of profile? Can I also change name same way?
I can’t find any solution, of way to write expression, but i tried to type something here in printscreen, to show You what I mean
Thank You for your help:)
Best Answers
-
Yes, see the reply here:
https://forum.onshape.com/discussion/20657/can-the-cutlist-feature-auto-import-dimensions..
You have to right click the value input and convert it to an expression input so that it can take variables. The variables still need to output a string value. See the post above for how to do this. Note: you can join strings together with the tilde symbol:
"Profile " ~ toString(#H) ~ " x " ~ toString(#L) ~ " x " ~ toString(#T)
▚▞▚▞▚▞▚▞▚1 -
You can make a configuration list for the three states (rounded, squared, chamfered) and configure the sketch so that it can have chamfers or fillets in the same sketch. Then use the configuration FeatureScript id as a variable in the Tag frames feature.
Like this:
▚▞▚▞▚▞▚▞▚1
Answers
-
Yes, see the reply here:
https://forum.onshape.com/discussion/20657/can-the-cutlist-feature-auto-import-dimensions..
You have to right click the value input and convert it to an expression input so that it can take variables. The variables still need to output a string value. See the post above for how to do this. Note: you can join strings together with the tilde symbol:
"Profile " ~ toString(#H) ~ " x " ~ toString(#L) ~ " x " ~ toString(#T)
▚▞▚▞▚▞▚▞▚1 -
Thank you @MichaelPascoe , That is so great.
I also have three states of that profile (rounded, squared, chamfered) and I would like to print in another column of cutlist that state, It is boolean type. So I should have some if then expression with booleand variable which prints outcome. Can You please helped me with this, or even better shared me some documentation, and I would like to learn myself.
Thanks a lot
0 -
You can make a configuration list for the three states (rounded, squared, chamfered) and configure the sketch so that it can have chamfers or fillets in the same sketch. Then use the configuration FeatureScript id as a variable in the Tag frames feature.
Like this:
▚▞▚▞▚▞▚▞▚1 -
Thank You, I was close, but not that close. i have that list but FeatureScript is still bit confusing for me, Thanks a lot
0 -
Usually FeatureScript stays within a feature studio and the user never needs to see it. Using FeatureScript directly within the part studio is an advanced Onshape technique that not many people will ever know about or care to use. So it is understandable to be confused. Pretty cool that it's possible though and it unlocks tons of modeling possibilities.
▚▞▚▞▚▞▚▞▚0


