BcPost.GetValueOfOperation
BcPost.GetValueOfOperation(paramName)
Description
This function is utilized get operation data such as the names, types, and custom posting information.
Parameters
- paramName – this function has a fixed set of parameter strings that you can pass to get different information related to the machining operation that is currently posting.
The list of possible inputs for paramName are shown below:
paramName |
Description |
ID |
Get the unique ID of the operation within the document. It is important to note that the ID value can even change after closing and reopening the document. |
Type |
Get a distinct operation type integer which can be utilized for specifically handling a single type of operation. The definitions for the type table are located in the Operation Type Reference topic |
JobName |
Get the name of the machining job that this operation is contained in the CAM Tree |
FeatureName |
Get the name of the feature which this operation is contained in the CAM Tree |
OperationName |
Get the name of the operation contained in the CAM Tree |
UserCheckBoxVariables |
Get a table returned containing the values of all the Advanced Posting pages checkbox variables |
UserEditIntegerVariables |
Get a table returned containing the values of all the Advanced Posting pages integer text fields |
UserEditRealVariables |
Get a table returned containing the values of all the Advanced Posting pages double / real text fields |
UserSelectComboVariables |
Get a table containing the indexes of all the Advanced Posting pages comboboxes |
UserEditStringVariables |
Get a table containing all the string values of all the Advanced Posting pages string text fields |
Return
The value of the requested piece of operation data.
Examples
-- Get the current operations type value in the CAM Tree
value = BcPost.GetValueOfOperation("Type")
Bcc.ShowMessageBox("Operation Type: "..value, {Title="Operation Type"})
-- Get the current operations job name in the CAM Tree
value = BcPost.GetValueOfOperation("JobName")
Bcc.ShowMessageBox("Job Name: "..value, {Title="Job Name"})
-- Get the current operations feature name in the CAM Tree
value = BcPost.GetValueOfOperation("FeatureName")
Bcc.ShowMessageBox("Feature Name: "..value, {Title="Feature Name"})
-- Get the current operations name in the CAM Tree
value = BcPost.GetValueOfOperation("OperationName")
Bcc.ShowMessageBox("Operation Name: "..value, {Title="Operation Name"})