V2 Vectric Post Processor in Vectric 11

I find that I frequently forget to add the tool name and speed to my toolpath file in Vectric so I decided to try and add that to the gcode file by editing the post processor file. I added the following statements to a copy of the post processor.

Just after the FILE_EXTENSION = “ncg” statement
POST_NAME = “OneFinity (inch_Rex)”

Just after the begin REVISION_COMMENT statement

  • Add tool name, tool notes, & router speed to header
  • By Rex Hanson 31Jan2022

“%”
“(VECTRIC POST REVISION)”
“([REVISION])”
“%”
“( Tool: [TOOLNAME])”
“(Tool Note: [TOOL_NOTES])”
“(Spindle Speed: [S])”
“%”
“%”

When I install the edited post processor file into VCarve it takes it just fine.
When I save a tool path it runs fine and creates the following statements at the top of my gcode file:

%
(VECTRIC POST REVISION)
(6BDF1E92470D996358027BC36CAD5196)
%
( Tool: Tapered Ball Nose (6.2°, Tip 1/64 - 1/4"))
(Tool Note: Amana 46280-S)
(Spindle Speed: S19000)
%
%

This all seems good, except there are two problems. The first is that when I try to load it onto my OneFinity machine I get the following error message:

Level Location Message
Error 0 Invalid character: ‘)’ At: /var/lib/bbctrl/upload/Test new PP_Inlay Plug_1-Pocket Texas Plug.ngc:5:1
  • 1 {“message”:“Unable to read file - doesn’t appear to be GCode.”,“code”:400}

The other problem is that if I examine rest of the gcode it appears that all of the moves have different values.

Anyone know what I’m doing wrong?

Thank you!