Bcc.SetCamObjParameters
Bcc.SetCamObjParameters(ObjectID, {ParamNames})
Description
This function allows you to set the parameter values for a machining operation.
The parameter name and format matches the exact structure of the default parameter templates which can be found in the following directory of your BobCAD-CAM V32 or newer system:
\BobCAD-CAM Data\BobCAD-CAM V33\Technology\Templates\CAM\DefaultParameters\Inch\System Default.xml
or
\BobCAD-CAM Data\BobCAD-CAM V33\Technology\Templates\CAM\DefaultParameters\Metric\System Default.xml
Parameters
- ObjectID - integer number representing the object ID
- This value typically will be passed to you from a registered callback or from getting the selected item's ID from the CAM tree.
- ParamNames - table including the parameter names and values which you would like to set
NOTE: The valid parameter names are the same names that are used in the default parameter templates.
Example
-- Set the lead in and lead out to blend types
setLeads = { Leads = {leadin_type = "Blend", leadout_type="Blend"} }
-- Update the operation parameters
Bcc.SetCamObjParameters(objID, setLeads)