Skip to content

INCLUDE_INTO_ACTIVE_VARIANT ​

INCLUDE_INTO_ACTIVE_VARIANT includes a modeling object or a connector into the active variant of a model.

Syntax ​

leo-grammar
CC "Drawing" INCLUDE_INTO_ACTIVE_VARIANT modelid:intValue objid:idValue

# --> RESULT ecode:intValue
CC "Drawing" INCLUDE_INTO_ACTIVE_VARIANT modelid:intValue objid:idValue

# --> RESULT ecode:intValue

Parameters ​

  • modelid (idValue) - the ID of the model
  • objid (idValue) - the ID of a modeling object or connector which shall be included into the active variant of 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.

See Also ​

Examples ​

Versions and Changes ​

Available since ADOxx 1.3