Merge the outside branches for ADOxx restart functionality
The ADOxx restart functionality has been developed outside of this project in various branches. The new features and improvements should be integrated into this implementation.
One of them was for the Scene2Model modelling tool. Some of the main improvements / changes are:
- Starting the
bat_restart.bat
in thebat_check_file.bat
script uses a "wait":start /w batch\\bat_restart.bat\n
- It allows configuring the username and password through a config file in the (see AdoScript Configuration Files module):
CC "AdoScript" FWRITE file:(sRestartBatPath) text:("start /max areena.exe -u"+scene2modelCfg["Scene2ModelUser"]+" -p"+lam_toString(scene2modelCfg["Scene2ModelPassword"])+" -d"+dbname+"\n") append:1
- It asks the user whether any unsaved models should be saved before exiting before executing anything else in the script:
# Check if there are unsaved models and ask whether they should be saved CC "Modeling" GET_ALL_MODIFIED IF (modelids <> "") { CC "AdoScript" QUERYBOX ("Should all unsaved models saved before restart? Unsaved changes are lost.") title:("Save changes?") yes-no-cancel def-yes IF (endbutton = "cancel") { EXIT } ELSIF (endbutton = "yes") { CC "Modeling" SAVE_ALL } }