Hello Paul,
You need to "glue" the connector to the group.
You can glue the connector to several parts of a group/shape i.e. port or shape/group contour etc.
Here is small code example:
NGroup group = new NGroup();
NRoutableConnector routableConnector = new NRoutableConnector();
// glue to shape contour
routableConnector.GlueBeginToShape(group);
// or
routableConnector.GlueEndToShape(group);
// glue to port
routableConnector.GlueBeginToNearestPort(group);
// or
routableConnector.GlueEndToNearestPort(group);
Please, check NShape class in our
documentation to find other options to glue a connector to a shape or group.
Best Regards,
Nevron Support Team