A method of creating of work programs for automatic machines