Bcc.CloseActiveDocument()

Bcc.CloseActiveDocument(Option)

Description

This function is utilized to close the active document in the BobCAD-CAM software.

Parameters

  • If no input is provided, the document will be saved in it's current state and closed

    String Option
  • Option - string value of the possible options below:
    • "UserChoice" - prior to closing the document, the user will be presented with a save as dialog to give opportunity to name the file
    • "AutoSave" - saves the document and then closes
    • "AutoNotSave" - close the document without saving


      Integer Option

  • Option - integer value of the possible options below:
    • 1 - "UserChoice"
    • 2 - "AutoSave"
    • 3 - "AutoNotSave"

Examples


-- Save and close the active document 

       Bcc.CloseActiveDocument()


-- Present a save dialog and close the active document 

       Bcc.CloseActiveDocument("UserChoice")


       -- Save and close the active document 

       Bcc.CloseActiveDocument("AutoSave")


       -- Close the active document without saving 

       Bcc.CloseActiveDocument("AutoNotSave")


       -- Present a save dialog and close the active document 

       Bcc.CloseActiveDocument(1)


       -- Save and close the active document 

       Bcc.CloseActiveDocument(2)


       -- Close the active document without saving 

       Bcc.CloseActiveDocument(3)