GET_AUTOSAVE ​
GET_AUTOSAVE is used to retrieve the current autosave settings.
Syntax ​
leo-grammar
CC "Modeling" GET_AUTOSAVE .
# --> RESULT enabled:boolValue changes:intValue
Parameters ​
none
Returns ​
enabled
(boolValue) -changes
(intValue) -
Details ​
The user can change the autosave settings in the dialog "Automatic saving" in the menu "Extra":
When autosave is turned on, the return variable enabled is set to 1, if not it is set to 0. The return variable changes contains the number of changes after which models are automatically saved.
See Also ​
Examples ​
asc
CC "Modeling" GET_AUTOSAVE
IF (enabled = 0)
{
CC "AdoScript" INFOBOX "Autosave is turned off!"
}
ELSE
{
CC "AdoScript" INFOBOX ("Autosave is turned on, models are automatically saved after " + STR changes + " changes in the model.")
}
This example queries the current autosave settings of the user and prints an apropriate message.
Versions and Changes ​
Available since ADOxx 1.3