BcPost.ProcessPostLine(postString)

Description

This function is utilized to process a line of standard BobCAD posting variables.  Input must be a string formatted exactly as a posting line using system posting variables. (Example: “n, rapid_move, xr, yr, ‘M08’”). 

The system post processes these variables as it would by using the posting engine and outputs the posted string to the posted NC file. 

Parameters

  • postString – string value of the text to output in the NC program

Examples


-- Output the NC code for the following post variables

BcPost.ProcessPostLine("n, rapid_move, xr, yr, 'M08'")


-- Show an example using a Lua variable to show proper concatenation

-- Remember that concatenation is done with .. operator in Lua

local xVal = 1.0

local yVal = 2.0

BcPost.ProcessPostLine("n,rapid_move_forced, 'X"..xVal.."','Y"..yVal.."'")