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.
Width mate
Answers
-
If it is between two faces of the same part, you can move the mate connector into the middle with the 'Between entities' option.
1. I have two parts that I want to center one inside of the other in my assembly. Because it is a rectangular hole, there is no implicit way to get the center of it.
2. I went to my assembly and inserted the grey part. The first thing I did was start a mate connector on the middle of the edge in the direction I wanted.
3. Change the type from 'On entity' to 'Between entities'. For the entity to be between, select the opposite face. This will put the mate connector, aligned the way it was before, between the edge and the face. This now gives me a point that is in the middle of the two faces.
Jake RamsleyDirector of Quality Engineering & Release Manager onshape.com3 -
That's excellent for when it is between "two faces of the same part" but what about two faces of a different part. For example. I am working on aligning my battlebot wheels in the middle of my frame (multiple pieces). I have shared my bot, Maximum Event with the support staff.1
-
As noted, this doesn't work on faces of different parts. Is there a solution yet?0
-
Can you share an example ? One can also offset mateconnectors to achieve the desired effectArmindilo said:As noted, this doesn't work on faces of different parts. Is there a solution yet?0 -
Offset would only work if the distance between the faces is constant, which it would not be of one of the items we on a slide or similar mate.ptrajkumar said:
Can you share an example ? One can also offset mateconnectors to achieve the desired effectArmindilo said:As noted, this doesn't work on faces of different parts. Is there a solution yet?
I can't do an example right now, but just create an assembly with 3 parts and try to mate one equidistant between the other two, regardless of the distance between the two changes.
I'll model up an example later on tonight if needed.1 -
-
Not really. That solution only works if the items are on Slider mates. If I want it to work on other arrangements where things are not always in line, and are free to move around in multiple directions, I end up having to add a lot of other mates to try to make it work properly, as well as having an opportunity for error if I don't calculate the original midpoint properly, since it seems to need to be set up manually.3dcad said:
https://cad.onshape.com/documents/63edd3009dcfb0269fbaa894/w/cd6411299a5477651df1cc97/e/93ac2ff9499805d08a9512b9
0 -
I also find the width mate very useful.
In this example I mated the yellow block as I would like it. But the pin slot mate only works because I added the blue part underneath. The blue part also won't work if the walls need to be moved, unless it is defined in context to the assembly.
If I had wanted to center between the walls that would be a nice mate to be able to add.
Another way might be to allow defining an assembly mate connector. Then I could make a mate connector that is in the center of the two walls, and use a pin mate.
Another nice thing would be to be able to lock rotation within the one mate. Either as part of the pin slot mate, or if there were a new mate for width.
Here is the assy
https://cad.onshape.com/documents/c626f606201f02555c041717/w/c2fe71c06476213040360097/e/a04fb84b13eaf7cddc410110
0 -
I know this is a really old thread, but is there any solution to this yet? Being able to establish a mate connector directly between two parts would be very helpful.0
-
@andrew_magaletti, the best I could come up with is a very crude work-around, by using a sketch to both mate the two parts together and then mate the third part to the midpoint of the sketch element. The roller is centered between the two blocks shown below similar to a "width" mate in SolidWorks.Unfortunately you would have to edit the sketch at the Part Studio level to change the spacing between the blocks.
0 -
Too bad that "Between Entities" doesn't work for 2 parts.
0 -
There is a at least a partial solution. But it takes some workandrew_magaletti said:I know this is a really old thread, but is there any solution to this yet?
https://cad.onshape.com/documents/92972a0a94f295ddcf05858c/w/7eeddd97d49f27c00840448d/e/a5c7d7d0f201bbb6a9bec497
0 -
You can do this using a linear mate relation like this no, or am I missing something?
I used two planar mates so the middle bit can move around up/down and sideways but you could make one of them a slider if you wanted them to stay aligned...
https://cad.onshape.com/documents/83a755253b5234cbf13ab537/w/61109c6b7dba48adaf5f9a77/e/c8a1bb398efd9186045c5af9?renderMode=0&uiState=61f044894799ad2097f82777
1 -
@eric_pestyeric_pesty said:… or am I missing something?
No, you’re not missing anything. It was a great idea you had
I’m headed down to the basement to get the weed blower to blow the cobwebs out of my skull.The relation let me do what I was trying to figure out yesterday
To be able to move the outside parts anywhere within a sphere
I would like to figure out how to not use as many mate features
I’ll go get a cup of coffee maybe that’ll help
0 -
@steve_shubin
Moving along a sphere is a bit different from the original topic which was to replicate the Solidworks "Width" functionality which I think my earlier example achieves with two mates and a linear relation (not ideal but not a horrible workaround and doesn't need any "dummy" parts).
Looks like you can achieve something similar to what you are doing with 2 parallel mates (you can apply limit to rotation to keep them aligned) and 3 separate relations to link the x, y and z (and no dummy/helper parts):
https://cad.onshape.com/documents/83a755253b5234cbf13ab537/w/61109c6b7dba48adaf5f9a77/e/e261f52ba22643f6f6c16d46?renderMode=0&uiState=61f0af9cac0dfc508ff9e59f
2 -
@eric_pesty
That’s excellent
Do me a favor and unlock that thing so I can copy it. I wanna take a look at that
0 -
@steve_shubin
Here you go, this should be public now instead of just a shared link: https://cad.onshape.com/documents/47c6c3f8282244773d012ab6/w/45c05cff81617055c12ed2f3/e/35595c8a9c42ad7502f40f26?renderMode=0&uiState=61f1867c27b84159870a69a51 -
@eric_pestyWhen setting up a linear relation on an iPhone, you will NOT see this menu

In other words, there’s no way to do what you did by using an iPhone. At least not anyway I could figure out, other than using dummy parts like I did above
So I had to fire up my MacBook Pro to get your combination of mate features to work
I definitely prefer your more lean approach
Thanks for that example Eric
0 -
@steve_shubin
That's interesting about the limitation on Mobile.
It seems to that picking the degree of freedom is a key part of creating a "mate relation" so I wonder if it's a bug (might as well disable mate relations altogether on mobile if you can't set them up properly...), you might want to fil a bug report...
0






