Bcc.ExitApp
Bcc.ExitApp()
Bcc.ExitApp(Option)
Description
This function is utilized to close the BobCAD-CAM software. Options are provided for handling closing all the active documents.
Parameters
- If no input is provided, the documents 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.ExitApp()
-- Present a save dialog and close the active document
Bcc.ExitApp("UserChoice")
-- Save and close the active document
Bcc.ExitApp("AutoSave")
-- Close the active document without saving
Bcc.ExitApp("AutoNotSave")
-- Present a save dialog and close the active document
Bcc.ExitApp(1)
-- Save and close the active document
Bcc.ExitApp(2)
-- Close the active document without saving
Bcc.ExitApp(3)