Skip to content

GET_ACTIVE_VARIANT ​

GET_ACTIVE_VARIANT gets the active variant of a model.

Syntax ​

leo-grammar
CC "Drawing" GET_ACTIVE_VARIANT	modelid:intValue

-->RESULT variant:strValue ecode:intValue

Parameters ​

  • modelid (idValue) - holds the ID of a model.

Returns ​

  • ecode (intValue) - Contains the error code or is 0 in case of success.
  • variant (strValue) - holds the name of the active variant of that model.

Details ​

As for all commands of the "Drawing" message port, it is not required here to have a model window opened.

See Also ​

Examples ​

asc
CC "Modeling" GET_ACT_MODEL
CC "Drawing" GET_ACTIVE_VARIANT modelid:(modelid)
CC "AdoScript" INFOBOX ("Active variant: " + variant)

Versions and Changes ​

Available since ADOxx 1.3