Script operations
A script operation can be added from the menu
or from the tool bar
You will then get a script operation dialog
You can add your script in the "script" box, like this:
Click "OK" to add the script operation.
When you do "Post Process" you will see the toolpath.
You can see from the g-code, there is no tool change, feedrate, or spindle speed command output.
The easiest way to find the script for this, is to create a profile or pocket operation, do "Post Process" and copy and paste the script for these, from the Program window.
These are:
tool_change( id=1) # where 1 is the tool number
spindle(7000)
feedrate_hv(100, 100)
flush_nc()
So, your script may now look like this:
and the gcode may look like this: