Hi All,
I'm trying to programmatically create a connection between 2 objects. I've created a script which detects if the objects overlap, and then I want to create the connection using CreateCxnOcc. I've tried a few different options, but can't seem to get the connection created.
Even if I go to a basic EPC model and select an Event and a Function, and use the below code the connection isn't created - I feel like I must be doing something wrong!
I'm not a programming expert by any stretch but can generally get by, so appreciate the help and sorry if I'm missing some basics.
var objects = ArisData.getSelectedObjOccs(); var model = objects[0].Model(); var cnx = model.CreateCxnOcc(false,objects[1],objects[0],Constants.CT_ACTIV_1,null);