Bcc.GetSelectedCamObjID
Bcc.GetSelectedCamObjID()
Description
This function will return the ID number for the selected object in the CAM tree in order to be used for other various CAM functions
This will typically be utilized with the following list to get or set parameters, compute toolpaths, or post NC programs:
- Jobs
- Machine Setup
- Groups
- Wrapping Group
- Index System
- Feature
- Operation
Any tree item without an underlying CAM object will NOT have a valid CAM object ID.
Return
Returns the ID number for the selected operation object in the CAM tree.
Returns -1 if the selected item does not have an underlying CAM object.
Examples
-- Get the selected object ID in the CAM tree
objID = Bcc.GetSelectedCamObjID()