In the case of wanting to export the tool definitions to an external file, here are some hints:
The modifications below are more easily done by using a text editor to edit the post-processor file, than to use the built-in editor in CB.
The first thing you need to do is modify your post-processor to output the tool-specific information in a comment before each MOp, thus:
------------------------
<ToolTableItem>{$comment} T{$tool.index} DIA {$tool.diameter} {$endcomment}</ToolTableItem>
<ToolChange>
{$comment} TOOL/MILL, T={$tool.index},DIA={$tool.diameter},LEN={$tool.length},PROF={$tool.profile} {$endcomment}
M5 ; spindle off
M25
G28 ; Go To Machine Return Position
{$comment}{$part.name} -- {$mop.name}{$endcomment}
{$comment} T{$tool.index} {$tool.diameter} {$tool.profile} {$endcomment}
T{$tool.index} M6
G43 H{$tool.index}
</ToolChange>
<MOP>
{$toolchange}
...
----------------------------------------------------
It will result in this sort of output in the g-code (snippet):
------------------------------------------
%
O1
: CONSOLE LAYOUT3
:
: CAMBAM
: CONSOLE LAYOUT3 10/4/2014 9:09:10 AM
: T1 DIA 0.005
: T2 DIA 0.125
: CUTVIEWER
: FROM/0,0,5
: STOCK/BLOCK,,,,,,
G20
G0 G17 G40 G80 G90
: TOOL/MILL, T=1,DIA=0.005,LEN=2.5,PROF=VCUTTER
M5 ; SPINDLE OFF
M25
G28 ; GO TO MACHINE RETURN POSITION
:LABELS -- ENGRAVE1
: T1 0.005 VCUTTER
T1 M6
G43 H1
:LABELS -- ENGRAVE1
G0X-0.7134Y1.4467
S3000 M3
G4 P6
...
---------------
Then you can invoke an external script or program of your choice to parse the g-code by modifying the post (at the very bottom) thus:
<PostBuildCommand>myscript_or_program_that_uses command-tail_arguments</PostBuildCommand>
<PostBuildCommandArgs>{$cbfile.name}.nc</PostBuildCommandArgs>
<SuppressParserErrors>true</SuppressParserErrors>
</PostProcessor>
That's the way I do it.
LLoyd