Bcc.Post(NCFile)

Bcc.Post(NCFile, ObjectName)

Bcc.Post(NCFile, ObjectID)

Description

This function will post the NC program of the active job in the CAM tree and write it to disk.  


Optionally you may also pass an object name or object ID in the event the document has multiple jobs and you wish to post out the program for the second or higher job, in which case you must provide an ID or name that exists in the appropriate job. 

IMPORTANT:  This function will always post the entire job!

Parameters

  • NCFile – the path and file name of that should be created containing the posted NC program

    NOTE:  If the file name specified has a *.apt extension, then the software will output the APT format file instead of the standard posted file.

  • ObjectName – the name of the a CAM item in the tree associated to a Job which you want posted.  


       Note: Please visit Bcc.GetSelectedCamObjName for more information on retrieving the selected objects name


  • ObjectID -  the integer ID of the a CAM item in the tree associated to a Job which you want posted.  


Note: Please visit Bcc.GetSelectedCamObjID for more information on retrieving the selected objects ID

Examples


-- Post the NC program for the first job in the CAM tree

Bcc.Post("C:\\PostedProgram.nc")


-- Post the NC program for the job named "Milling Job 2"

Bcc.Post("C:\\PostedProgram.nc", "Milling Job 2")


-- Post the NC program for the job that has focus in the CAM tree

Bcc.Post("C:\\PostedProgram.nc", Bcc.GetSelectedCamObjID())