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.
skconstraint on the circle center
pierre_gr
Member Posts: 12 ✭✭
Hi,
I have a line and a circle.
The line is fixed and I need to place a circle at a specific position, tangent to the line.
How can I do it ?
Should I add something like that before my tangent constraint ?
Thank you,
I have a line and a circle.
The line is fixed and I need to place a circle at a specific position, tangent to the line.
skCircle(gearSketch2, "baseCircle", { "center" : center, "radius" : arcBase.radius, "construction" : true }); skConstraint(gearSketch2, "Base_tangent", { "constraintType" : ConstraintType.TANGENT, "localFirst" : "baseCircle", "localSecond" : "pressureLine" });The tangent constraint is working ok but the center is moved because I haven't fixed it.
How can I do it ?
Should I add something like that before my tangent constraint ?
skConstraint(gearSketch2, "baseCircle_fix_center", { "constraintType" : ConstraintType.FIX, "localFirst" : "baseCircle.center"});or with a COINCIDENT constraint ? How do I access the circle center ?
Thank you,
Tagged:
0
Best Answer
-
pierre_gr Member Posts: 12 ✭✭Solved.
Turns out that this is exactly what I had to do (the FIX constraint with circleName.center)
0
Answers
Turns out that this is exactly what I had to do (the FIX constraint with circleName.center)