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.

# Fancy Constraints?

ryan_henning
Member Posts:

**6**✭
There are a few constraints I'd like to be able to add. Perhaps it's already possible and I just don't know how! Will you all help me? (I'm new to CAD, so this is all new to me. But I'm having a great time building my model in OnShape!)

1. I'd like to be able to set the diameter of a circle equal to the length of a line.

2. I'd like to be able to set the length of a line equal to some ratio of the length of another line. E.g. Line 1 is always half the length of Line 2.

3. Combining the two above. I'd like to set the diameter of a circle equal to some ratio of the length of another line.

Are those things possible? Thanks!

1. I'd like to be able to set the diameter of a circle equal to the length of a line.

2. I'd like to be able to set the length of a line equal to some ratio of the length of another line. E.g. Line 1 is always half the length of Line 2.

3. Combining the two above. I'd like to set the diameter of a circle equal to some ratio of the length of another line.

Are those things possible? Thanks!

Tagged:

0

## Comments

2,471PRO1. Draw construct line inside circle and set that line equal to other lines

2. Create variable before sketch and set line1 lenght = #var_linelenght, line2 lenght = #var_linelenght / 2

3. Just use variable as value for diameter

https://cad.onshape.com/help/#variable.htm?Highlight=variable

6✭Thanks! Variables, that makes sense.

5,575