Skip to content

IS_OPENED ​

S_OPENED checks if the model with the id modelid is already opened in the model editor.

Syntax ​

leo-grammar
IsModelOpen :	IS_OPENED modelid:intValue .


# --> RESULT isopened:intValue

Parameters ​

  • modelid (idValue) -

Returns ​

  • isopened (intValue) - the return variable isopened is set to 1 if the model is already opened, to 0 if it is not.

Details ​

See Also ​

Examples ​

asc
CC "CoreUI" MODEL_SELECT_BOX 
CC "Modeling" IS_OPENED modelid:(VAL modelids)
IF (isopened = 1)
{
   CC "AdoScript" INFOBOX "The model you selected is currently opened"
}
ELSE
{
   CC "AdoScript" INFOBOX "The model you selected is not opened yet"
}

Lets the user select a model in a model select box. Then checks if the model is currently open and prints an accordnig infobox.

Versions and Changes ​

Available since ADOxx 1.3