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.

Using Z axis of mate connector error once transformed

Lee_HeskethLee_Hesketh Member, Developers Posts: 148 ✭✭✭
Hello, I am working on a feature that imports a part with a mate connector. I am then rotating that part using the mate connectors Z axis. I also have a boolean which if true, it will rotate about the mate connectors X axis first. The error occurs when I then want to rotate about the mate connectors Z axis. I would think the mate connectors local Z axis would now be perpendicular to the global Z axis. But it is parallel i.e. the part has rotated, but the mate connector hasn't. What is peculiar is it looks like it has in the part studio, but debugging reveals it is (0,0,-1), not (0,1,0). Why is this?

There are 10 types of people in the world. Those who know binary, those who don't and those who didn't expect base 3!

Comments

  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,714
    You also need to transform the mate connector.
    Senior Director, Technical Services, EMEAI
  • Lee_HeskethLee_Hesketh Member, Developers Posts: 148 ✭✭✭
    The problem is that I am using that mate connector to call line() for use as the axis. I have called evMateConnector(). If I use the evaluation in opTransform(), it throws an error. By the picture I posted, hasn't it already been transformed?
    Document:https://cad.onshape.com/documents/6ca70d535fb4f9822b343214/w/028f50d7a2a757243c7bcc3d/e/8fd9a3be9e398d391a60eda5
    There are 10 types of people in the world. Those who know binary, those who don't and those who didn't expect base 3!
  • Lee_HeskethLee_Hesketh Member, Developers Posts: 148 ✭✭✭
    I fixed it, I had to call evMateConnector() after the initial transform.
    There are 10 types of people in the world. Those who know binary, those who don't and those who didn't expect base 3!
Sign In or Register to comment.