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.
How to set a constraint on an assembly based on faces and not on lengths?
The battery organizer (the larger piece) has a lid that fits in. I tried to make an assembly to check if the contact is good enough (due to the chamfers I fear that there will be no flat surface to fit) but could not set a limit on the translation that would say "move until this face touches that one".
How can I do that?
—Note: looks like it will fit, but I am interested in the general answer to the question for learning purposes
Best Answer
-
martin_kopplow Member Posts: 559 PRO
You already found out you could a mate for this, and specify two faces or other geometric entities and partners. You could even set a min and max distance, so you could move the lid away and back on until it touches. The secret sauce in this case is to specify min. limit value (and max. if you like)
I inverted your mate connectors in order to make the max distance go into the "away" direction and not move the lid into the part.
Modified Version: https://cad.onshape.com/documents/9218a0a0b021e34d7f9592b6/w/2fe22685708f09bd454a4d50/e/e189fd6e8c87b417c3051726?renderMode=0&uiState=67717093a96d461ac0c896d5
0
Answers
You already found out you could a mate for this, and specify two faces or other geometric entities and partners. You could even set a min and max distance, so you could move the lid away and back on until it touches. The secret sauce in this case is to specify min. limit value (and max. if you like)
I inverted your mate connectors in order to make the max distance go into the "away" direction and not move the lid into the part.
Modified Version: https://cad.onshape.com/documents/9218a0a0b021e34d7f9592b6/w/2fe22685708f09bd454a4d50/e/e189fd6e8c87b417c3051726?renderMode=0&uiState=67717093a96d461ac0c896d5
Thank you - I saw the limits but did not get the idea to reverse the axis and set the minimal distance to 0. Thanks again!