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.
Access the version name via a global variable or feature script
fredrik_tärnell
Member Posts: 29 ✭✭
Would like to make an embossed text on my part with the versionname for an highly iterative process 3d printing and making small adjustments in between.
I cannot tell the different versions apart by looking at the. Possible today already??
I cannot tell the different versions apart by looking at the. Possible today already??
0
Best Answer
-
ilya_baran Onshape Employees, Developers, HDM Posts: 1,215This is not possible and we have no plans to make it possible: we don't want users to worry about geometry changes when you create or rename a version or copy a workspace. You can use a local variable for this which you edit.Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc-1
Answers
And the follow up feature request
https://forum.onshape.com/discussion/3796/variable-values-displayed-in-text
Doesn't seem to have passed critical mass yet?
The part of your request that is problematic is using a version name as a variable: a fundamental aspect of Onshape's design is that once you've created a version, you have nailed down the geometry (referencing, release management, caching, etc. all depend on this). So there's no way a version rename could alter the geometry in that version. What I can imagine happening at one point that would address your need is if we simplify the use of the API to the point where it's suitable for general individual use: then you could write a function that first modifies your part studio sketch text with the intended version name and then immediately creates a version with that name.