Extracting feature dimensions and type from part

Hello SolidWorks forum,

The company I work for just bought a combined dril & saw CNC machine (see attached file). The CNC machine is programmed in such a way, that it needs the following inputs for each operation:

Feature type (Which tool is used. Eg. M8 drill)

- Position of feature on the X-Y plane

- Rotation of part around Y-axis for feature

 

I'm trying to create a macro that extracts the above information from SolidWorks and exports it. 

Is SolidWorks CAM the way to go?

Best Regards   

SolidworksApi/macros