GET_ALL_CONNECTORS ​
GET_ALL_CONNECTORS returns a list of object ids (separated by spaces) of all connectors within a model.
Syntax ​
leo-grammar
CC "Core" GET_ALL_CONNECTORS modelid:intVal .
#-->RESULT ecode:intValue objids:strValue
Parameters ​
modelid
(idValue) - the argument modelid has to be set to the id of the model for which the connectors should be retrieved.
Returns ​
ecode
(intValue) - Contains the error code or is 0 in case of success.objids
(strValue) - The return variable objids contains a list of connector ids separated by spaces.
Details ​
See Also ​
Examples ​
asc
# get the current model
SEND "GET_ACTIVE_MODEL" to:"Modeling" answer:modelid
IF (modelid = "")
{
CC "AdoScript" ERRORBOX "Open a model first!"
EXIT
}
# get all connectors of the model
CC "Core" GET_ALL_CONNECTORS modelid:(VAL modelid)
# for each connecor, dye it
FOR id in:(objids)
{
CC "Modeling" DYE (VAL id) error-mark
}
First the id of the currently active model id retrieved. For this model, all connector ids are retrieved. in a FOR-loop, each connector is dyed.
Versions and Changes ​
Available since ADOxx 1.3