Bcc.AddNewCAMJob(JobType, MachineName, ParamTemplate)

Description

This function will create a new CAM job in the current document.  

Parameters

  • JobType – integer value specifying the type of job to create
    • 0 = Milling
    • 1 = Turning
    • 2 = Mill Turn
    • 3 = Wire EDM
  • MachineName – the name of machine to be selected for the job.  If a valid machine name for the selected job type is not passed the default machine will be selected
  • ParamTemplate – the name of the parameter template to be selected.  The suggested value to be passed if you are unsure is "System Default" as this template is always installed.


Return

Returns the object ID for the created CAM Job.

Examples


-- Create a new Milling job with the BC_3x_Mill and the System Default template

Bcc.AddNewCAMJob(0, "BC_3x_Mill", "System Default")