Hello,
I'm trying for hours to get all connections of an occurrence (CxnOccs) within a macro. I've read the ARIS help page for the Designer class (Macro Object Model) and it doesn't help much:
getIncomingCxns(Model, ConnectableOcc) -> BaseCxnOcc[]
getOutgoingCxns(Model, ConnectableOcc) -> BaseCxnOcc[]
getTarget(Model, BaseCxnOcc) -> ConnectableOcc
getSource(Model, BaseCxnOcc) -> ConnectableOcc
Isn't this a loop?
What's the function that gives me the connection occurrences?
Thanks
Hi Kyle,
Try this. It gives you two arrays. One with incoming and one with outgoing connection occurrences.
Have fun,
Edwin
var oObjOccs = Context.getSelectedObjOccs();
for(var i=0;i<oObjOccs.length;i++) {
var oModel = Designer.getModel(oObjOccs[i]);
var oInCxns = Designer.getIncomingCxns(oModel, oObjOccs[i]);
var oOutCxns = Designer.getOutgoingCxns(oModel, oObjOccs[i]);
}