Example of a NC program including sub-programming for a multiple part setup including on-machine probing, which writes measured values into external log files which are then passed to a quality system (CAQ). The complete NC programming task is done with NX CAM from Siemens and UserCycle, which is a NX addon tool for cycle programming. Also the machine simulation is running under ISV, the integrated simulation and verification module of NX. Only one station of the part family setup is programmed, the other 3 part programs are create automatically through the postprocessor. All probing operation are created as machine cycles. The NC program and the simulation are done for a DMC 60 U with Siemens 840D solutionline control.