Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:

  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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ärnellfredrik_tärnell Member Posts: 24
edited January 3 in Community Support
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?? 

Best Answer

  • ilya_baranilya_baran Posts: 921
    Accepted Answer
    This 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 \ Director, Architecture and FeatureScript \ Onshape Inc

Answers

  • fredrik_tärnellfredrik_tärnell Member Posts: 24
    edited January 3
    ...
  • ilya_baranilya_baran Onshape Employees, Developers, HDM Posts: 921
    Accepted Answer
    This 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 \ Director, Architecture and FeatureScript \ Onshape Inc
  • ilya_baranilya_baran Onshape Employees, Developers, HDM Posts: 921
    The requests you link to are for using variable values in sketch text -- that is already possible with FS and we do have plans to enable this without using FS.

    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.
    Ilya Baran \ Director, Architecture and FeatureScript \ Onshape Inc
Sign In or Register to comment.