Using slider mate with assembly pattern (piston in cylinder problem)

Does anyone know how to solve the following problem in the simplest way:

If we have a cylinder and there is a piston that slides along the axis (with the set mate - slider). How to modulate the number of cylinders and pistons with the help of a linear or circular pattern so that the mate - slider is retained, but that the position of the pistons from the beginning of the cylinder is not the same (the pistonare not at the same
position)?

Answers

  • Tony_C_
    Tony_C_ Member Posts: 281 PRO
    sketch a crankshaft
  • Tony_C_
    Tony_C_ Member Posts: 281 PRO
    I don't know if this is what you're going for, but it may give you some ideas. 

    https://cad.onshape.com/documents/a289fac44669e296712d59ed/v/1aed405bd33b33527706c479/e/7ba8d22c1dd299a4b12616e6
  • dejan_pavicevic
    dejan_pavicevic Member Posts: 8 ✭
    It's about a kind of piston pump (with a cam instead of a crankshaft)!
    On the sketch is a
    cam, pump body with a cylinder and a piston inside the cylinder. On the basis of this sketch in the part studio was made a all parts and inserted into the assembly. I made a mate connection between the one piston and the cylinder (slider mate) and between cam and the piston (tangent mate)! And it works. I have animation.
    When I increase the number of cylinders with the circular pattern and try to increase number of piston also
    with circular pattern I lose the connection between the cam and pistons. All piston move as original and do not follow the cam.






  • john_mcclary
    john_mcclary Member, Developers Posts: 4,117 PRO
    You may not be able to pattern, try replicate instead.

    It make sense that a pattern would follow the seed part's relative position.