Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Delete node without removing links (Read 1446 times)
kc13
YaBB Newbies
*
Offline



Posts: 29
Joined: Jan 19th, 2009
Delete node without removing links
Jan 27th, 2009 at 1:42pm
Print Post  
When I remove a node using: diagram.Nodes.Remove(nod) it also removes the links attached to that node.  I have diagram.AllowUnconnectedLinks = True.

How do I prevent the links from being removed since apparently the linkdeleting events do not fire when removing programmatically?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Delete node without removing links
Reply #1 - Jan 27th, 2009 at 3:42pm
Print Post  
Try detaching the links from the node first, by setting their Origin and Destination to a new DummyNode instance.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint