Broken Links

Created two node and a link in a GoGroup.



And, the link is disconnected when I move the group by code.



I know “link.UpdateRoute()” is the one of solution.



But, in my project, calling UpdateRoute() method is so uneasy.



I want to find a solution without calling UpdateRoute()



<br /> public class MyDoc : GoDocument <br /> { <br /> public void InitDoc(GoView view) <br /> { <br /> GoGroup group = new GoGroup(); <br /> Add(group); <br /> <br /> GoBasicNode node1 = new GoBasicNode(); <br /> group.Add(node1); <br /> <br /> GoBasicNode node2 = new GoBasicNode(); <br /> node2.Center = new PointF(100, node2.Center.Y); <br /> group.Add(node2); <br /> <br /> GoLabeledLink link = new GoLabeledLink(); <br /> group.Add(link); <br /> <br /> node1.Port.AddDestinationLink(link); <br /> node2.Port.AddSourceLink(link); <br /> <br /> group.Left = 10; <br /> group.Top = 200; <br /> // link going to be disconnected from nodes <br /> } <br /> } <br />

GoGroup isn’t smart enough to handle multiple nodes and links. Instead of GoGroup, use GoNode (or GoSubGraphBase or GoSubGraph).