Which post processor are you using?
I do nothing more than selecting a box point and checking that the X/Y/Z orientation matches how I want to install the stock on the machine, e.g.
and then use @neilferreri’s awesome postproc, never had a problem.