BcPost.GetValueOfPostVariable(postVariable)

Description

This function is utilized get the current value of existing native posting engine variable at the current time this function is called.  This API does not currently support all of the BobCAD posting engine variables, and a list of the supported variables can be found in the Post Variables Supported topic.


Please refer to the Posting Variable and API Reference in the help system of the BobCAD-CAM product you are working with for a complete description of the posting variables and VB APIs.

Parameters

  • postVariable – string value of the BobCAD posting variable name

Return

The value of the requested posting variable

Examples


-- Get the current and previous X Y Z positions

x = BcPost.GetValueOfPostVariable("x_f")

y = BcPost.GetValueOfPostVariable("y_f")

z = BcPost.GetValueOfPostVariable("z_f")

xPrev = BcPost.GetValueOfPostVariable("prev_x")

yPrev = BcPost.GetValueOfPostVariable("prev_y")

zPrev = BcPost.GetValueOfPostVariable("prev_z")