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.
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
-
MichaelPascoe Member Posts: 2,012 PRO
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)
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴1 -
MichaelPascoe Member Posts: 2,012 PRO
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:
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴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)
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴
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
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:
https://cad.onshape.com/documents/c7b27b76f8ebca6ff7b29ecf/w/e601722e38a4749fc56b794e/e/7718065b37de7a5ccbde8…
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴
Thank You, I was close, but not that close. i have that list but FeatureScript is still bit confusing for me, Thanks a lot
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.
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴