Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Diagramlink overlapping Diagramnode (Read 3189 times)
venki5star
Junior Member
**
Offline



Posts: 82
Location: India
Joined: Mar 9th, 2010
Diagramlink overlapping Diagramnode
Apr 24th, 2010 at 4:13am
Print Post  
Hi,

I could see the diagramlink overlapping the nodes. I have sent you a screen dump of it (from surendra@eagle-india.com). All i want is the connections not to overlap the nodes, it has to bend down/up automatically and connect to the nodes.

Please help.
  

Castle Rider
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Diagramlink overlapping Diagramnode
Reply #1 - Apr 24th, 2010 at 9:59am
Print Post  
Enable the link's AutoRoute property.
  
Back to top
 
IP Logged
 
venki5star
Junior Member
**
Offline



Posts: 82
Location: India
Joined: Mar 9th, 2010
Re: Diagramlink overlapping Diagramnode
Reply #2 - Apr 24th, 2010 at 10:11am
Print Post  
This doesn't help.

This is my code.

DiagramLink link = new DiagramLink(diagram, Source, Destination);
link.AutoRoute = true;

  

Castle Rider
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Diagramlink overlapping Diagramnode
Reply #3 - Apr 26th, 2010 at 8:06am
Print Post  
It works fine for me. Email a sample that reproduces this to support@mindfusion.eu.
  
Back to top
 
IP Logged
 
venki5star
Junior Member
**
Offline



Posts: 82
Location: India
Joined: Mar 9th, 2010
Re: Diagramlink overlapping Diagramnode
Reply #4 - Apr 26th, 2010 at 3:46pm
Print Post  
Hi Stoyon,

I have sent you one sample in which you can reproduce this issue. you would have got a mail from surendra@eagle-india.com.

The issue here is i am utilizing the default behavior of the Diagram and i still wanted to go with it. Please help me in making the AutoRoute property to be enabled by default.
  

Castle Rider
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Diagramlink overlapping Diagramnode
Reply #5 - Apr 26th, 2010 at 5:35pm
Print Post  
Set diagram.RouteLinks = true as default for all new links, or handle LinkCreated and set e.Link.AutoRoute for specific links.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
venki5star
Junior Member
**
Offline



Posts: 82
Location: India
Joined: Mar 9th, 2010
Re: Diagramlink overlapping Diagramnode
Reply #6 - Apr 27th, 2010 at 3:40am
Print Post  
This helped. But is it possible to alter the height of the routed link. Sent you the screen dump.

  

Castle Rider
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Diagramlink overlapping Diagramnode
Reply #7 - Apr 27th, 2010 at 5:20am
Print Post  
You might switch diagram.LinkRouter to GridRouter, it should choose a shorter route in that case. For QuickRouter we have recently implemented a UBendMaxLen property in the Windows Forms version (http://mindfusion.eu/Forum/YaBB.pl?board=fcnet_disc;action=display;num=1268392108), we'll try to add it to the next WPF release too.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint