Creating and Saving a Work Session
- Updated2024-09-12
- 1 minute(s) read
(Extending Functionalities with Scripts | Scripts | Version 2010) > Creating and Saving a Work Session
|
Creating and Saving a Work Session |
This example provides functions for creating, saving, and exiting the current work session and continuing it after the next program launch.
To do so the example creates the new function group Create and Save Worksession on the toolbar of every DIAdem panel. This function group contains several functions:
Use the functions Save All Files of the Current Work Session, Create New Project and Save All Files of the Current Work Session, and Exit DIAdem and Save All Files of the Current Work Session to save all files currently loaded in DIAdem to the desktop subfolder CurrProjectDrv. In this case DIAdem changes the predefined settings of the default files so that DIAdem loads these files at the next program launch.
The function Restore Default Settings and Delete Function Group restores the default files to the delivery status and removes this function group from the toolbar.
DIAdem uses the BarManager object to create the function group.
Start example
Click a Filename to Load this File into DIAdem
| ProjectSaveCurr_Init.vbs | Script file |
| ProjectSaveCurr_Libr.vbs | Script file |
| ProjectSaveCurr.SUD | Dialog box file |
| DIAdemProjectNew.ico | Symbol file |
| DIAdemProjectSave.ico | Symbol file |
| DIAdemProjectSaveClose.ico | Symbol file |
| DIAdemProject.ico | Symbol file |
| DIAdemSave.ico | Symbol file |