Automatization of the light projection system for metrology