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 Error

I am building a 4 cylinder engine but i have this problem, when i try to connect the top of the piston to the guide sketch i made using slider mate the piston moves up and out of place making the piston not spin on the axis. It worked before but i accidently deleted that and now when I'm trying to redo it it wont work. i need the piston to only move up and down.
0
Answers
The piston wants a cylindrical mate with the cylinder in the block. No limits required for full motion. If the piston travels too far then you have mismatch of crank offset to cylinder height. add revolute mates at each end of connecting rods.
I did try that but then the whole block starts spinning and not just the pistons going up and down
@arvid_hackelsjö
Here is a sample with Block fixed and a cylindrical mate for the piston. Animate revolute 5 for smoothest replay.
https://cad.onshape.com/documents/dc45b7f3886e00ee4835c2fa/w/6f0fc43ae0332f30a049556a/e/7657e668357c9320a28d915d