Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Link Vicinity (Read 3219 times)
bizintel_dan
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 10
Joined: Jun 15th, 2020
Link Vicinity
Jun 15th, 2020 at 9:29pm
Print Post  
How can I have link vicinity so links aren't so close together. Is there a way to space out nodes more if I have to grow more room for link boundaries.
  

linkvicinity.png ( 15 KB | 118 Downloads )
linkvicinity.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Link Vicinity
Reply #1 - Jun 16th, 2020 at 6:32am
Print Post  
Hi,

Try calling new OrthogonalRouter().Arrange(diagram);

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
bizintel_dan
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 10
Joined: Jun 15th, 2020
Re: Link Vicinity
Reply #2 - Jun 26th, 2020 at 1:12pm
Print Post  
These are layout calls I make
anOrthogonalLayout.Arrange(diagram);
anOrthogonalLayout.Arrange(diagram, diagramitems);
I don't see any link routers that are orthogonal.
I have used with success
MindFusion.Diagramming.Layout.OrthogonalLayout();
MindFusion.Diagramming.Layout.AnnealLayout();
to map out my diagrams
I use a lot of looping to call arrange.
foreach node in diagramnodes
if (gettype() == ContainerNode)
arrange(diagram,getdatagramcollection(node)
These leads to a lot of calling of Arrange.
Should I be using a lot of loop calls to reach nested containers or can I call Arrange(diagram)?




  
Back to top
 
IP Logged
 
bizintel_dan
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 10
Joined: Jun 15th, 2020
Re: Link Vicinity
Reply #3 - Jun 26th, 2020 at 1:18pm
Print Post  
The only problem is the links.
They draw to the middle of tables instead of anchoring on the outside of tables. Unless some links are empty on there column anchor point.
I don't mind them crossing through containers.
Also they get all bunched up in the same lanes.
It looks like all one line in places where there are 10 lines super close together.
How can I get wider lanes?
  
Back to top
 
IP Logged
 
bizintel_dan
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 10
Joined: Jun 15th, 2020
Re: Link Vicinity
Reply #4 - Jun 26th, 2020 at 1:20pm
Print Post  
I use
diagram.RouteAllLinks();
after my looped layout arrange calls to try and get the links where I want them.
Should layout arrange just be used instead?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Link Vicinity
Reply #5 - Jun 26th, 2020 at 2:43pm
Print Post  
OrthogonalRouter is a layout class from the Diagramming.Layout namespace. Try replacing diagram.RouteAllLinks() call with "new MindFusion.Diagramming.Layout.OrthogonalRouter().Arrange(diagram)" one.
  
Back to top
 
IP Logged
 
bizintel_dan
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 10
Joined: Jun 15th, 2020
Re: Link Vicinity
Reply #6 - Jun 26th, 2020 at 6:43pm
Print Post  
The OrthogonalRouter() is a better fit. What properties does it have that I can adjust to get links lanes more spaced out?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Link Vicinity
Reply #7 - Jun 29th, 2020 at 4:58pm
Print Post  
Hi,

There aren't any properties for distance. The Arrange method should automatically distribute links as much as possible in space between nodes, doesn't it? There's also some weight given to keeping initial distance between links from same node to follow the bundle more easily while they travel in same direction, so space might not be exactly evenly distributed. If it's not working that well with your diagram, please send us the saved file and our developer will investigate.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint