Manufacturing of endoscope parts