All Variables
From Macros Wiki
| Variable | Variable set automatically by the system | Version Number |
| Button | Number of button pressed on macro dialog (0 = OK button) | 9, 4, 25 |
| CircleRef | Reference number of circle created by a circle geometry command | 9, 4, 25 |
| ContourRef | Reference number of contour created by a contour geometry command | 9, 4, 25 |
| CsNumber | Number of CS created by the NEW_CS command | 9, 4, 25 |
| CURRENT_CS_NUM | Current CS number | 9, 0, 0 |
| CURRENT_WG_NUM | Current WorkGroup number | 9, 0, 0 |
| ExcelCellLength | set when using the EXCEL_FIND_CELL command | 9, 4, 25 |
| ExcelError | Error code set by all Excel commands | 9, 4, 25 |
| EXCEL_IS_OPEN | whether or not an excel file is open | 9, 0, 0 |
| EXCEL_IS_VISIBLE | whether or not an excel file is visible | 9, 0, 0 |
| FEAT_TYPE_ARC | an arc feature type | 9, 0, 0 |
| FEAT_TYPE_CTOOL | a ctool feature type | 9, 0, 0 |
| FEAT_TYPE_CURVE | a curve feature type | 9, 0, 0 |
| FEAT_TYPE_LINE_IJK | an ijk feature type | 9, 0, 0 |
| FEAT_TYPE_LINE | a line feature type | 9, 0, 0 |
| FEAT_TYPE_MARKER | a marker feature type | 9, 0, 0 |
| FEAT_TYPE_POINT | a point feature type | 9, 0, 0 |
| FEAT_TYPE_RAPID | a rapid feature type | 9, 0, 0 |
| FEAT_TYPE_SPLINE | a spline feature type | 9, 0, 0 |
| FileError | Error code set by all file commands | 9, 4, 25 |
| GIBBSCAM_VERSION_1 | the version of gibbscam running | 9, 4, 24 |
| GIBBSCAM_VERSION_2 | the version of gibbscam running | 9, 4, 24 |
| GIBBSCAM_VERSION_3 | the version of gibbscam running | 9, 4, 24 |
| GIBBSCAM_WINDOW_X1 | the first x position of the gibbscam window | 9, 0, 0 |
| GIBBSCAM_WINDOW_X2 | the second x position of the gibbscam window | 9, 0, 0 |
| GIBBSCAM_WINDOW_Y1 | the first y position of the gibbscam window | 9, 0, 0 |
| GIBBSCAM_WINDOW_Y2 | the second y position of the gibbscam window | 9, 0, 0 |
| HoleFrAngle | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrBottom | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrBottomClear | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrBottomZ | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrCS | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrDepth | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrDia | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrDiaTop | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrError | Error code set by HOLEFR commands | 9, 4, 25 |
| HoleFrFullDepth | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrMidDepth | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrPosAxisX | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrPosAxisY | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrPosAxisZ | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrPosTopX | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrPosTopY | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrPosTopZ | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrPosX | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrPosY | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrPosZ | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrRef | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrRevCS | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrThroughType | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrtipAngle | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrTop | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrTopClear | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrTopZ | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrType | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| HoleFrWidth | hole feature data set by the HOLEFR_GET_FEAT command | 9, 4, 25 |
| LineRef | Reference number of line created by a line geometry command | 9, 4, 25 |
| MTOOL_HOLDER | the mill tool holder | 9, 0, 0 |
| MTOOL_HOLDER_TYPE | the mill tool holder type | 9, 4, 24 |
| MTOOL_HOLDER_TYPE_BORE | if the mill tool holder is bore | 9, 4, 24 |
| MTOOL_HOLDER_TYPE_COLLET | if the mill tool holder is a collet | 9, 4, 24 |
| MTOOL_HOLDER_TYPE_DRILL | if the mill tool holder is a drill | 9, 4, 24 |
| MTOOL_HOLDER_TYPE_MILL | if the mill tool holder is a mill | 9, 4, 24 |
| MTOOL_HOLDER_TYPE_ROT_CLAMP | if the mill tool holder is a rotary clamp | 9, 4, 24 |
| MTOOL_HOLDER_TYPE_SHELL | if the mill tool holder is a shell | 9, 4, 24 |
| MTOOL_HOLDER_TYPE_SHRINK_FIT | if the mill tool holder is a shrink fit | 9, 4, 24 |
| MTOOL_HOLDER_TYPE_TAP | if the mill tool holder is a tap | 9, 4, 24 |
| MTOOL_HOLDER_TYPE_TG_COLLET | if the mill tool holder is a tool group | 9, 4, 24 |
| PLUGIN_VERSION_1 | the version of plugin running | 9, 4, 24 |
| PLUGIN_VERSION_2 | the version of plugin running | 9, 4, 24 |
| PLUGIN_VERSION_3 | the version of plugin running | 9, 4, 24 |
| PointRef | Number of point created by a point geometry command | 9, 4, 25 |
| ReadVarsNumVars | Number of variables read using READ_NUM_VARS command | 9, 4, 25 |
| SCREEN_HEIGHT | the height of the screen | 9, 0, 0 |
| SCREEN_WIDTH | the height of the screen | 9, 0, 0 |
| SolidRef | Number of solid created by an EXTRUDE_SHAPE command | 9, 4, 25 |
| TOOL_ORIENT_DL | if the tool orientation is down left | 9, 4, 24 |
| TOOL_ORIENT_DOWN_LEFT | if the tool orientation is down left | 9, 4, 24 |
| TOOL_ORIENT_DOWN_RIGHT | if the tool orientation is down right | 9, 4, 24 |
| TOOL_ORIENT_DR | if the tool orientation is down right | 9, 4, 24 |
| TOOL_ORIENT_LD | if the tool orientation is left down | 9, 4, 24 |
| TOOL_ORIENT_LEFT_DOWN | if the tool orientation is left down | 9, 4, 24 |
| TOOL_ORIENT_LEFT_UP | if the tool orientation is left up | 9, 4, 24 |
| TOOL_ORIENT_LU | if the tool orientation is left up | 9, 4, 24 |
| TOOL_ORIENT_RD | if the tool orientation is right down | 9, 4, 24 |
| TOOL_ORIENT_RIGHT_DOWN | if the tool orientation is right down | 9, 4, 24 |
| TOOL_ORIENT_RIGHT_UP | if the tool orientation is right up | 9, 4, 24 |
| TOOL_ORIENT_RU | if the tool orientation is right up | 9, 4, 24 |
| TOOL_ORIENT_UL | if the tool orientation is up left | 9, 4, 24 |
| TOOL_ORIENT_UP_LEFT | if the tool orientation is up left | 9, 4, 24 |
| TOOL_ORIENT_UP_RIGHT | if the tool orientation is up right | 9, 4, 24 |
| TOOL_ORIENT_UR | if the tool orientation is up right | 9, 4, 24 |
| TOOL_TYPE_35_DEG | if the tool type is 35 degrees | 9, 4, 24 |
| TOOL_TYPE_55_DEG | if the tool type is 55 degrees | 9, 4, 24 |
| TOOL_TYPE_55_PARA | if the tool type is 55 parallel | 9, 4, 24 |
| TOOL_TYPE_80_DEG | if the tool type is 80 degrees | 9, 4, 24 |
| TOOL_TYPE_BACK_BORE | if the tool type is back bore | 9, 0, 0 |
| TOOL_TYPE_BALL_END_MILL | if the tool type is a ball end mill | 9, 0, 0 |
| TOOL_TYPE_BORE | if the tool type is bore | 9, 0, 0 |
| TOOL_TYPE_CENTER_DRILL | if the tool type is a center drill | 9, 0, 0 |
| TOOL_TYPE_COUNTERSINK | if the tool type is a countersink | 9, 0, 0 |
| TOOL_TYPE_CUTOFF | if the tool type is cutoff | 9, 4, 24 |
| TOOL_TYPE_DRILL | if the tool type is a drill | 9, 0, 0 |
| TOOL_TYPE_FACE_CUTTER | if the tool type is a face cutter | 9, 0, 0 |
| TOOL_TYPE_FINISH_END_MILL | if the tool type is a finish end mill | 9, 0, 0 |
| TOOL_TYPE_FLY_CUTTER | if the tool type is a fly cutter | 9, 0, 0 |
| TOOL_TYPE_FORM | if the tool type is form | 9, 4, 24 |
| TOOL_TYPE_GROOVE | if the tool type is groove | 9, 4, 24 |
| TOOL_TYPE_KEY_CUTTER | if the tool type is a key cutter | 9, 0, 0 |
| TOOL_TYPE_PENTAGON | if the tool type is pentagon | 9, 4, 24 |
| TOOL_TYPE_REAMER | if the tool type is a reamer | 9, 0, 0 |
| TOOL_TYPE_RECTANGLE | if the tool type is a rectangle | 9, 4, 24 |
| TOOL_TYPE_RIGID_TAP | if the tool type is a rigid tap | 9, 0, 0 |
| TOOL_TYPE_ROUGH_END_MILL | if the tool type is an end mill | 9, 0, 0 |
| TOOL_TYPE_ROUND | if the tool type is a round | 9, 4, 24 |
| TOOL_TYPE_ROUNDOVER | if the tool type is a roundover | 9, 0, 0 |
| TOOL_TYPE_SHELL_CUTTER | if the tool type is a shellcutter | 9, 0, 0 |
| TOOL_TYPE_SPOT_DRILL | if the tool type is a spot drill | 9, 0, 0 |
| TOOL_TYPE_SPOT_FACE | if the tool type is a spot face | 9, 0, 0 |
| TOOL_TYPE_SQUARE | if the tool type is a square | 9, 4, 24 |
| TOOL_TYPE_TAP | if the tool type is a tap | 9, 0, 0 |
| TOOL_TYPE_THREAD_MILL | if the tool type is a thread mill | 9, 0, 0 |
| TOOL_TYPE_THREAD1 | if the tool type is a thread | 9, 4, 24 |
| TOOL_TYPE_THREAD2 | if the tool type is a thread | 9, 4, 24 |
| TOOL_TYPE_TRIANGLE | if the tool type is a triangle | 9, 4, 24 |
| TOOL_TYPE_TRIGON | if the tool type is trigonometrical | 9, 4, 24 |
| TOOL_TYPE_UTIL | if the tool type is utility | 9, 4, 24 |
| TOOL_TYPE_VPROFILE | if the tool type is vprofile | 9, 0, 0 |
| WgNumber | Number of WorkGroup created by the NEW_WG command | 9, 4, 25 |