Skip to content

ACTIVATE_MODEL ​

ACTIVATE_MODEL activates a model. The activate model is displayed at top level in the model editor. If it was minimized, its model window is restored. The model id for the model that should be activated modified is passed in intVal.

Syntax ​

leo-grammar
CC "Modeling" ACTIVATE_MODEL intValue

Parameters ​

  • <main-parameter> (intValue) - ID of model

Returns ​

none

Details ​

See Also ​

Examples ​

asc
CC "CoreUI" MODEL_SELECT_BOX 
CC "Modeling" IS_OPENED modelid:(VAL modelids)
IF (isopened = 1)
{
   CC "Modeling" ACTIVATE_MODEL (VAL modelids)
}

Lets the user select a model. If the model is currently opened, activate it.

Versions and Changes ​

Available since ADOxx 1.3