Hi Maxim,
Depending on your scenario you can use one of the following methods of the NShape class:
· GetIncommingShapes – gets all connectors which end plug is connected to the shape
· GetOutgoingShapes – gets all connectors which start plug is connected to the shape
· GetShapesConnectedToInwardPorts – gets all of the above
Best Regards,
Nevron Support Team