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.

Same Variable Name!

BahramiBahrami Member Posts: 1 EDU
I just start learning Onshape from learning center and special thanks to this amazing team.
I have a question about variables.
In the last exercise we should put the same name for variables, Can someone explain me that reason?


  • romeograhamromeograham Member, csevp Posts: 657 PRO
    edited January 15
    Pay special attention to the Pattern - where "Features" are patterned (or maybe that exercise uses a Sketch Pattern). You'll see how the variable #Slots is used in the pattern.
    Variables are solved in the Feature List in the order they appear - so #Slots can have different values depending on where it appears in the list.  I've mostly seen this used in Patterns.
    However, you can also use it to Override a variable that may have been imported / derived into your Part Studio - you can use the same name but a different value for that variable, and Onshape will use the last value assigned.

    Good luck, and Welcome to Onshape!
Sign In or Register to comment.