This will not be hard to do but how you need to do it will be determined by where your post is from. If it is from Inhouse Solutions then they have a seperate postblock in most of there posts where the tool is output. The Mastercam posts that come with the software are like the following.
Under a postblock called "psof" look for the following code
ptoolcomment
comment$
pcan
pbld, n$, *t$, sm06, e$
pindex
--------------------------------
Now make it look like this
ptoolcomment
comment$
pcan
pbld, n$, *t$, sm06, e$
pbld, n$, "M01", e$
pindex
-----------------------------------
Then you will have to change it in the "ptlchg" postblock like below.
-----------------------------------
Look for this code:
ptoolcomment
comment$
pcan
result = newfs(15, feed) #Reset the output format for 'feed'
pbld, n$, *t$, sm06, e$
pindex
sav_absinc = absinc$
if mi1$ > one, absinc$ = zero
and make it look like this:
ptoolcomment
comment$
pcan
result = newfs(15, feed) #Reset the output format for 'feed'
pbld, n$, *t$, sm06, e$
pbld, n$, "M01", e$
pindex
sav_absinc = absinc$
------------------------------------
It is important to note that I omitted large ammounts of code from these postblocks. These are just examples.
A postblock is a labeled block, or series of lines, of MP language code in the post customization file
(.PST file). The post executable file (the .DLL file) interprets the code in the postblocks to create a list
of instructions that produce the NC output, perform calculations and call other postblocks. These
blocks of MP language code produce the NC output.
This should get you pointed in the right direction
AC
AC
Has anyone seen my pillow?