How to "spread linearly" the force of a solenoid
Solenoids don't work that way because magnetic fields don't work that way.

To get a constant linear force independent of position, a rack and pinion driven by a motor is a possibility.  Some voice coil mechanisms can be pretty constant in force with position too, especially if position feedback can be used to adjust the drive current.