Hi,
To get the shape connected to a given port you can use the following code:
private List<NShape> GetConnectors(NPort port)
{
NNodeList plugs = port.Plugs;
if (plugs == null)
return new List<NShape>();
List<NShape> connectors = new List<NShape>();
for (int i = 0, count = plugs.Count; i < count; i++)
{
NPlug plug = (NPlug)plugs[i];
connectors.Add(plug.Shape);
}
return connectors;
}
Best Regards,
Nevron Support Team