Skip to content

GET_SELECTED ​

GET_SELECTED returns the IDs of the currently selected objects in a model.

Syntax ​

leo-grammar
CC "Modeling" GET_SELECTED  [ model:idValue ] .


# --> RESULT ecode:intValue objids:strValue classid:idValue.
CC "Modeling" GET_SELECTED  [ model:idValue ] .


# --> RESULT ecode:intValue objids:strValue classid:idValue.

Parameters ​

  • modelid (idValue) -

Returns ​

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

Details ​

If modelid is not specified, the currently active model is used. The return value objids contains the IDs of the selected objects. If the model window is in "tabular modeling" mode and not in "overview" mode, the return value classid is the ID of the currently active class. Otherwise this value is 0.

DESELECT

Activity "aktiv6" is selected, "aktiv5" is not.

Hint: does not work for tabular modeling.

See Also ​

Examples ​

Versions and Changes ​

Available since ADOxx 1.3