Generate machining program from previous test run