Skip to content

SET_ACTIVE_VARIANT (Drawing) ​

SET_ACTIVE_VARIANT sets the active variant of a model.

Syntax ​

leo-grammar
CC "Drawing" SET_ACTIVE_VARIANT	modelid:intValue variant:strValue

# --> RESULT ecode:intValue .

Parameters ​

  • modelid (idValue) - the ID of the model
  • variant (strValue) - the name of the variant to activate in the model.

Returns ​

  • ecode (intValue) - Contains the error code or is 0 in case of success.

Details ​

As for all commands of the "Drawing" message port, it is not required here to have a model window opened. So the variant can be activated easily before generationg graphics using CC "Drawing" GEN_GFX_FILE / GEN_GFX_STR.

See Also ​

Examples ​

asc
CC "Drawing" SET_ACTIVE_VARIANT
       modelid:(modelid) variant:"With swimlanes"

Versions and Changes ​

Available since ADOxx 1.3