Index: trunk/src_plugins/export_xy/xy.c =================================================================== --- trunk/src_plugins/export_xy/xy.c (revision 27416) +++ trunk/src_plugins/export_xy/xy.c (revision 27417) @@ -73,6 +73,11 @@ {"format", "file format (template)", PCB_HATT_ENUM, 0, 0, {0, 0, 0}, NULL, 0}, #define HA_format 2 + + {"cam", "CAM instruction", + PCB_HATT_STRING, 0, 0, {0, 0, 0}, 0, 0}, +#define HA_cam 3 + }; #define NUM_OPTIONS (sizeof(xy_options)/sizeof(xy_options[0])) @@ -791,6 +796,7 @@ memset(&templ, 0, sizeof(templ)); + gather_templates(); if (!options) { @@ -804,6 +810,8 @@ if (!xy_filename) xy_filename = "pcb-out.xy"; + pcb_cam_nolayer(PCB, options[HA_cam].str, &xy_filename); + if (options[HA_unit].lng == -1) xy_unit = get_unit_struct("mil"); else