Preparing files for CNC-milling has 2 steps: First you design your file in CAD-software and then you use CAM-software to generate the files containing a set of instructions that will run the machine (CAD stands for Computer Aided Design and CAM stands for Computer Aided Manufacturing). Some software packages have both in 1 environment.

CAD - 2D drawing &/or 3D modeling

CAM - Creating toolpaths for running the machine

CNC Machine operation