Nevron Forum

NErmConnector

https://www.nevron.com/Forum/Topic3815.aspx

By Golay Jean-Philippe - Thursday, July 15, 2010

I would like to connect to NErmShapes with a NErmConnector programatically ?
How to specify which table fields to connect to?
I tried
NErmConnector line12 = new NErmConnector();
line12.StyleSheetName = NDR.NameConnectorsStyleSheet;
line12.Text = "JPG";
nDrawingDocument1.ActiveLayer.AddChild(line12);
line12.FromShape = nErmShape1;
line12.ToShape = nErmShape2;

But the line does not appears?

Thanks
By Nevron Support - Thursday, July 15, 2010

Hi,

To connect 2 shapes exactly to the fields (plugs) you want you should connect the plugs of the erm connector to the proper ports of the shapes:

 

edge.StartPlug.Connect(port1);               

edge.EndPlug.Connect(port2);

By Golay Jean-Philippe - Monday, July 26, 2010

What is the best Layout for NErmShapes?
Thanks
By Nevron Support - Tuesday, July 27, 2010

It depends on your data and goals, but most users prefer using the Layered Graph Layout (with a direction set to LeftToRight) for automatic layout of ERM diagrams.