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.
Slider mate over-defines the assembly / how do I make my crank & slider mechanism work properly
I am new to cad and have been making things in school, but wanted to make something in assembly in my free time.
I am currently trying to make a basic crank & slider mechanism, as it would be found in a car. All I have is a crankshaft, a connecting rod, and a piston head. I can get the crankshaft rotating, the connecting rod attached, but I couldn't figure out how to make the piston slide.
I looked online and found this tutorial (this is not the exact one but it is the latest one he made). I used my own design and copied everything he did in assembly. At 26:00, he does the slider mate, I copied everything but as soon as he presses the accept button at 26:50, it says that the slider mate over-defines the assembly.
I had tried to use a slider mate to get it working before I watched this tutorial and did pretty much the same thing he did, albeit in a more complicated and inefficient way. However it still didn't work.
Link to the project.
Any help would be appreciated a lot.

Comments
I figured it out! It turns out that the best way to fix this problem was to keep the slider mate, but change the mate in the piston head, connecting to the connector rod to a cylindrical mate not a revolute mate like I was using before. Then it works the exact way I need it to.
Without looking at the file: The typical mistake with such designs is that the rod is fixed in the piston with a revolve mate. Change that to a cylindrical mate. Usually, this relieves the overdefinition.
You need to convert revolute mates to cylindrical, (especially the "animate me!" one). The two slider mates fully remove any translation along the axis of the crank already and end up fighting the crank revolutes.