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.

skconstraint on the circle center

pierre_grpierre_gr Member Posts: 12
edited October 2017 in Community Support
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.

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:

Best Answer

  • pierre_grpierre_gr Posts: 12
    Accepted Answer
    Solved.

    Turns out that this is exactly what I had to do :) (the FIX constraint with circleName.center)


Answers

  • pierre_grpierre_gr Member Posts: 12
    Accepted Answer
    Solved.

    Turns out that this is exactly what I had to do :) (the FIX constraint with circleName.center)


Sign In or Register to comment.