I use Planet software and do similar things, I use 'Estlcam' to generate the code because it is very easy to use and you can set your DOC for each part very easily