Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Links disconect on copy paste (Read 2592 times)
hrumayor
YaBB Newbies
*
Offline



Posts: 24
Location: Canada
Joined: Jun 3rd, 2009
Links disconect on copy paste
Oct 29th, 2009 at 9:56pm
Print Post  
Hi Stoyan,

I am having the following issues:

1) If auto routing is enabled under some conditions copy paste to clipboard will leave the links hanging in the air.

2) Also there is no way with the default copy to clipboard to copy only the connected links, I am doing it manually. ( Never mind: I found out that PasteFromClipboard has a parameter to ignore unconected links on paste, so I am now using this)

3)Regarding the copy constructor for the DiagramLink, there is no way to create a link with null DiagramNode pointers. I am getting strange behaviors depending on how I create my custom link, the IsConnected does not work correctly with a custom DiagramLink.

4) CopySelection(this, false, false); also returns unconnected links, even with the second parameter false.

Regards,
Hugo
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Links disconect on copy paste
Reply #1 - Oct 30th, 2009 at 10:56am
Print Post  
Hi,

1) Do you mean some unconnected links were copied, or ones that were connected seem hanging in the air?

3) Use the ones that takes point arguments, or otherwise pass Diagram.DummyNode as argument.

4) Do you expect links whose ends are not selected to be skipped? This method is mostly for internal use and is called from PasteFromClipaboard; at that point such links really don't have origin / destination nodes.

Stoyan
  
Back to top
 
IP Logged
 
hrumayor
YaBB Newbies
*
Offline



Posts: 24
Location: Canada
Joined: Jun 3rd, 2009
Re: Links disconect on copy paste
Reply #2 - Oct 30th, 2009 at 2:05pm
Print Post  
Hi,

1) The ones that were connected move and stay hanging on the air, but it only happens sometimes most of the times it works, disabling auto routing seems to fix the problem.

3) I see why it was not working, IsConnected is specifically cheeking for dummy Node or null. I wanted to use null, but the validation subroutine does not allow it.

4) I was expecting links not fully connected that is IsConnected == false not to be included, no problem tough it just confusing.

Hugo
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Links disconect on copy paste
Reply #3 - Oct 30th, 2009 at 4:29pm
Print Post  
Have you noticed if another node overlaps the link's origin or destination at the connection point when that happens? Are you using the default LinkRouter, or have set it to the older GridRouter implementation?
  
Back to top
 
IP Logged
 
hrumayor
YaBB Newbies
*
Offline



Posts: 24
Location: Canada
Joined: Jun 3rd, 2009
Re: Links disconect on copy paste
Reply #4 - Oct 30th, 2009 at 4:36pm
Print Post  
I am using the default link router, what happens is that the connections of multiple nodes get merged on a single point on the air. It seems to happen with or without node overlaps, I tried to paste it on new diagram and have the similar behavior. I will disable auto route, and make a manual route activations, that seems a better option anyway.

Hugo
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint