NX CAM can automate CNC programing by using Feature-Based Machining (FBM). The generative FBM technology automatically determines the machining process for a wide range of features. NX uses the Product and Manufacturing Information (PMI), such as tolerances and surface finish callouts attached to the 3D model, to drive the machining method selection.
please select the link for the tutorial
Answered with a tutorial: https://grabcad.com/tutorials/how-to-generate-program-in-nx-cam-using-feature-based-machining