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.

globaly change variable name, search replace

wolfgang_maierwolfgang_maier Member Posts: 37 ✭✭
Hello forum,

a variable can be renamed.

Assume the variable is used to defined the size of objects.
With renaming the variable all references to objects must be updated manually.

So, i am missing a global search/replace command for changing all occurrences for that variable.

regards
Wolfgang

Comments

  • Jake_RosenfeldJake_Rosenfeld Moderator, Onshape Employees, Developers Posts: 1,273
    Hi Wolfgang,

    There is currently no functionality in the product to refactor a part studio variable name.

    Please vote on this improvement request so that we can prioritize this enhancement: https://forum.onshape.com/discussion/comment/29018#Comment_29018
    Jake Rosenfeld - Modeling Team
  • lorenz_michelslorenz_michels Member Posts: 3 EDU
    I miss the function that Wolfgang suggests too. I think however that it can be even better than Wolfgang suggests and perhaps it should be divided into two functions:

    1. rename: When renaming a variable (the situation Wolgang describes) it would be nice if OnShape would show a list of items that use that variable. It then would be nice if the user could select the items which have to use the renamed version of the variable. When the user only selects SOME of the items to use the new variable the unselected items will still be using the old version of the variable. In fact the user creates a new variable in this way. If the user selects ALL the items to use the renamed version of the variable, then the user should be able to choose whether to keep the old variable or to delete the old variable (default)

    2. search and replace: A search and replace function for variable names would be nice. This is independent of renaming of a variable.

    I am aware that these two functions overlap with each other, but both have their value.
Sign In or Register to comment.