DELETE_CONNECTOR ​
DELETE_CONNECTOR deletes a single connector.
Syntax ​
leo-grammar
CC "Core" DELETE_CONNECTOR ConnectorID | FromToIDs .
leo-grammar
ConnectorID : modelid:intValue objid:idValue .
leo-grammar
FromToIDs : modelid:intValue fromobjid:idValue fromobjid:idValue classid:intValue .
leo-grammar
#-->RESULT ecode:intValue
Parameters ​
modelid
(idValue) - the ID of the model containing the connector to be deleted.objid
(idValue) - the instance ID of the connector to be deleted.fromobjid
(intValue) - the IDs of the source object of the connector to be deletedfromobjid
(intValue) - the IDs of the target object of the connector to be deletedclassid
(intValue) - the relation class ID of the connector.
Returns ​
ecode
(intValue) - Contains the error code or is 0 in case of success.
Details ​
Two forms are provided : Passing a connector ID or passing the IDs of the related objects together with the connector's relation class ID.
See Also ​
Examples ​
asc
SEND "GET_ACTIVE_MODEL" to:"Modeling" answer:modelid
SET mid:(VAL modelid)
CC "Core" GET_CLASS_ID classname:"Aktivität"
SET cid:(classid)
CC "Core" GET_CLASS_ID classname:"Nachfolger" relation
SET rcid:(classid)
CC "Core" GET_OBJ_ID modelid:(mid) classid:(cid) objname:"Aktivität-1"
SET iid1:(objid)
CC "Core" GET_OBJ_ID modelid:(mid) classid:(cid) objname:"Aktivität-2"
SET iid2:(objid)
CC "Core" DELETE_CONNECTOR modelid:(mid) fromobjid:(iid1) toobjid:(iid2) classid:(rcid)
CC "Modeling" REBUILD_DRAWING_AREA modelid:(mid)
Versions and Changes ​
Available since ADOxx 1.3