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.

Creating relations between dimensions

gustavo_chellesgustavo_chelles Member Posts: 2 PRO
Hi, I would like to create relations between dimensions, something like d2=d1+3, but I don't find the way of doing this.  Can anyone give me a tip?

Comments

  • jelte_steur814jelte_steur814 Member Posts: 184 PRO
    Hi gustavo,
    this can be done using variables:
     Create a variable named 'd1' (it'll appear in the feature tree)
     In a feature or sketch, you can type a formula. type "#" and you'll see a list of parameters you've created (you can even create one there and then).

    when you type in a sketch for a dimension "#d1 + 3" it won't work because it can't add numbers to millimeters or inches.
    so type "#d1 + 3 mm" and it'll work.

    you can also go ahead and create a new variable. name it "d2" and the value can be calculated.

    good luck
  • robert_scott_jr_robert_scott_jr_ Member Posts: 484 ✭✭✭
    Hello Gustavo. Create a variable named d1 and assign a value to it. If the value is 2 and you are working in inches It will look like this: #d1= 2in   . Now you can use d1 in the equation for d2 but you must add a unit type to the 3. When you are beginning to enter d2's dimension, hit the pound(#) key. This will call up a list of created variables and you can select d1 and go on from there. d2's dimension should look like: #d1+3in - Scotty
Sign In or Register to comment.