Skip to content

CLOSE_ALL ​

CLOSE_ALL closes all currently opened model in the modeleditor.

Syntax ​

leo-grammar
CC "Modeling" CLOSE_ALL [ quiet [ save ] ].


# --> RESULT ecode:intValue
CC "Modeling" CLOSE_ALL [ quiet [ save ] ].


# --> RESULT ecode:intValue

Parameters ​

  • quiet(modifier) -
  • save(modifier) -

Returns ​

  • ecode (intValue) - the return variable ecode is set to 0 if closing worked, to 1 if an error occured.

Details ​

When passing the argument quiet, the user will not be asked for models with unsaved changes if he wants to save them. The models will be closed and the changes discarded. For models that have been newly created without adding any objects and saving, the user will also not be asked if he wants to delete the model again, the model will just be closed, not deleted.
If additional passing the argument save the model will also be saved.

ATTENTION:
Closing the own model window is impossible when running in a PROGRAMCALL script which has been called by the user via the notebook or via the drawing area.

See Also ​

Examples ​

asc
CC "Modeling" CLOSE_ALL
CC "Modeling" CLOSE_ALL

Closes all currently opened models.

Versions and Changes ​

Available since ADOxx 1.3