Skip to content

EXCLUDE_FROM_ACTIVE_VARIANT ​

EXCLUDE_FROM_ACTIVE_VARIANT excludes a modeling object or a connector from the active variant of a model.

Syntax ​

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

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

# --> RESULT ecode:intValue .

Parameters ​

  • modelid (idValue) - the ID of the model
  • objid (idValue) - the ID of the modeling object

Returns ​

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

Details ​

The parameters of this CC are the ID of a model and the ID of a modeling object or connector which shall be excluded from the active variant of that model.

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 "Modeling" GET_SELECTED
FOR objid in:(objids) {
    CC "Drawing" EXCLUDE_FROM_ACTIVE_VARIANT
            modelid:(modelid) objid:(VAL objid)
}
CC "Modeling" GET_ACT_MODEL
CC "Modeling" GET_SELECTED
FOR objid in:(objids) {
    CC "Drawing" EXCLUDE_FROM_ACTIVE_VARIANT
            modelid:(modelid) objid:(VAL objid)
}

Versions and Changes ​

Available since ADOxx 1.3