Skip to content

GET_SELECTED_MODELS ​

Returns the IDs of the models currently selected in the explorer.

Syntax ​

leo-grammar
CC "Explorer" GET_SELECTED_MODELS .
#--> RESULT	ecode:intValue selmodels:idArray
CC "Explorer" GET_SELECTED_MODELS .
#--> RESULT	ecode:intValue selmodels:idArray

Parameters ​

none

Returns ​

  • ecode (intValue) - if everything succeeded, ecode is 0. Otherwise 1 is returned.
  • selmodels (intValue) - Array, a sorted array of model IDs. Possible selected model group entries are not considered.

Details ​

See Also ​

GET_SELECTED_MODELGROUPS

Examples ​

asc
CC "Explorer" GET_SELECTED_MODELS
SET s:""
FOR i from:0 to:(selmodels.length - 1) {
  CC "Core" GET_MODEL_INFO modelid:(selmodels[i])
  SET s:(s + cond(i, "\n", "") + modelname + " (" + modeltype + ")")
}
CC "AdoScript" INFOBOX (s)
CC "Explorer" GET_SELECTED_MODELS
SET s:""
FOR i from:0 to:(selmodels.length - 1) {
  CC "Core" GET_MODEL_INFO modelid:(selmodels[i])
  SET s:(s + cond(i, "\n", "") + modelname + " (" + modeltype + ")")
}
CC "AdoScript" INFOBOX (s)

Versions and Changes ​

Available since ADOxx 1.3