GET_SELECTED_MODELS

GET_SELECTED_MODELS returns the IDs of the models currently selected in the explorer.

Syntax

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

Parameters

none

Returns

ecodeintValue, if everything succeeded, ecode is 0.  Otherwise 1 is returned.
selmodelsidArray, a sorted array of model IDs.  Possible selected model group entries are not considered.

Remarks

See Also

GET_SELECTED_MODELGROUPS

Example 1

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)
GET_SELECTED_MODELGROUPS returns the IDs of the model groups currently selected in the explorer.