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.
"Center" Mate Connectors are Dangerous/Useless
S1mon
Member Posts: 2,982 PRO
I'm really baffled by mate connectors. In some ways they solve a lot of issues that other CAD systems have but in other ways they are practically useless.
Case in point:
I've been trying to take imported ECAD parts and add connectors to help re-position parts on PCBs. I was trying to put a mate connector on this ZIF connector:
It looks like it's centered from left to right (X-axis of MC), but it's actually 0.003mm off. In the Y-axis of the MC, I couldn't figure out what it's doing. So I made a simple part:
The mate connector here is not centered, except if we assume it's at the centroid of the area of the face. To me this is beyond useless, because it deceptively seems like it's doing one thing but it's actually doing something else. It's taken me hours to figure out what Onshape is doing. To be fair, the word "centroid" is in the help, but somehow I assumed that it would be the centroid of a bounding rectangle that encloses the face. The centroid is only useful if the shape is already symmetric, otherwise it's pointless.
I have figured out how to use the "between entities" option to get what I want, but it's far from obvious that would be the right way to do this. It might be helpful to add more examples of "between entities" to show the power of that option. I have other mate connectors on other parts where I added a sketch to get the MC where I wanted. Now I might be able to skip the sketch step. I wish this was more clear.
Case in point:
I've been trying to take imported ECAD parts and add connectors to help re-position parts on PCBs. I was trying to put a mate connector on this ZIF connector:
It looks like it's centered from left to right (X-axis of MC), but it's actually 0.003mm off. In the Y-axis of the MC, I couldn't figure out what it's doing. So I made a simple part:
The mate connector here is not centered, except if we assume it's at the centroid of the area of the face. To me this is beyond useless, because it deceptively seems like it's doing one thing but it's actually doing something else. It's taken me hours to figure out what Onshape is doing. To be fair, the word "centroid" is in the help, but somehow I assumed that it would be the centroid of a bounding rectangle that encloses the face. The centroid is only useful if the shape is already symmetric, otherwise it's pointless.
I have figured out how to use the "between entities" option to get what I want, but it's far from obvious that would be the right way to do this. It might be helpful to add more examples of "between entities" to show the power of that option. I have other mate connectors on other parts where I added a sketch to get the MC where I wanted. Now I might be able to skip the sketch step. I wish this was more clear.
Tagged:
0
Comments
In another CAD system (Solidworks or Creo and I assume countless others), I could easily create a coordinate system with a few clicks which would be where I need it. In Onshape, unless I'm missing something, I have to add a sketch or manually add an offset dimension. I tried a bunch of "on entities" and "between entities" picks, and I can't get what I need. Why is this so hard?
Here's a simple block, created with a centered rectangle sketch located on the origin. I've added a mate connector at the center of the face. It lines up with the origin - as one would expect.
Now I add a hole before the mate connector and it moves:
In this case the change is large enough that I would likely catch the issue. But what if the hole is smaller in proportion? Then there's a high likelihood that mistakes will be made. With a smaller hole which only moves the centroid slightly, I might never catch the shift:
Now that I'm aware of this insane approach, I can work around it, but I wonder how many models out there have strange little errors due to issues like this?
There are a few things you could do to work around this.
Mate connector & center off mass:
Placing a mate connector between entities. (Optional solution):
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴
It's definitely the 2D centroid of the face, not the Center of Mass of the part projected on the face. See this example:
I had already come to the same conclusions as your #1 and #2 solutions. #1 is not ideal with imported geometry. I would typically need to add sketches to do what I want. Certainly I've been thinking about #3.
My main concerns with highlighting this issue are:
If you decide to go with option #3, let me know. I have some lines of code that will be a quick copy and paste to make that feature.
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴