Axis 1 is attached to the chassis and does not move, parts 2 and 2' rotate around this axis. When one (or both) of parts 2 and 2' rises, the piston composed of parts 3 and 4 compresses.
The problem is that when I want to create a coaxial link between room 3 and 4 (highlighted in blue below) so that the 2 pieces slide, I get a beautiful error that blocks the whole system. I specify that the 2 pieces are well aligned at the start.
What you can do is validate your constraint by forcing it and then make a diagnosis. The software will offer you several solutions to correct your problem.
To tell the truth, when I saw the flexible assemblies, I didn't try to understand because as I said I don't like it or occasionally. So for me it's easier to take out the parts and put the constraints back in a more "traditional " assembly.
Well done GT22. Indeed, it looks like the wheels are not aligned and as a result, the 2 and 2' parts are not either. This means that the piston is not likely to be coaxial with the cylinder body.
If MadMax06 had forced the coercion, the diagnosis would have told him that there was one coincidence too many;)
Indeed the wheels are not aligned on the other hand the 2 parts of the piston/cylinder (as you want) are aligned. On the model I make, the wheels must be offset... If I had wanted to do the parallel wheels from the beginning, I would have done it^^
The assembly may be over-constrained and the fact of adding yet another constraint does not please Solidworks (it must be said that this one is fussy).
Or there is a slight misalignment between the piston and the cylinder body. What does it look like with a measurement of the two axes?
edit: I've already measured and there is no offset and like pabove, the two axes overlap. I start the assembly from the beginning, without using subassembly we'll see what happens