GET_ALL_MODEL_THREADS ​
GET_ALL_MODEL_THREADS returns a list of all model threads.
Syntax ​
leo-grammar
CC "Core" GET_ALL_MODEL_THREADS [ modeltype:strValue ] [ only-write-access ] .
#-->RESULT ecode:intValue modelthreadids:strValue
Parameters ​
modeltype
(strValue) - if passed, only model threads of this model type are returnedonly-write-access
(modifier) - when passed, only threads of models are returned on which the user has write permission.
Returns ​
ecode
(intValue) - Contains the error code or is 0 in case of success.modelthreadids
(strValue) - a list of the model thread IDs separated by blanks
Details ​
Optionally this list is filtered to only one modeltype and/or only write-access permitted models.
This command returns only the thread ids of (filtered) models. Is a versionized application library is used and all versions are needed, use GET_ALL_MODEL_VERSIONS instead (see ).
See Also ​
Examples ​
Get all model threads type "Sample Model"
leo-grammar
CC "Core" GET_ALL_MODEL_THREADS modeltype:"Sample Model"
IF (ecode) {
CC "AdoScript" ERRORBOX ("Error: " + STR ecode)
} ELSE {
CC "AdoScript" INFOBOX ("Model thread IDs: " + modelthreadids)
}
Versions and Changes ​
Available since ADOxx 1.3