Producing eyelet buttonholes with solenoid valves