Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic TreeLayout (Read 1998 times)
oOAnriOo
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 19
Joined: Oct 12th, 2009
TreeLayout
Dec 8th, 2009 at 10:57am
Print Post  
I'm trying to get an automatic treelayout out of this diagram


All nodes are based on DiagramNode, the white boxes in the node named "Zulu 1" are attached DiagramNodes with anchors and they are fixed to the mother-node using AttachTo and IgnoreLayout.

Now, when I autoarrange i get this result.. ..the subnodes are placed in the top in stead of under the "Zulu 1" node.

What might I be doing wrong?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: TreeLayout
Reply #1 - Dec 8th, 2009 at 1:14pm
Print Post  
What happens if you set TreeLayout.KeepGroupLayout instead of setting IgnoreLayout on the anchor nodes? This should make the layout function regard the whole group as a single node, whereas IgnoreLayout will disconnect the tree.
  
Back to top
 
IP Logged
 
oOAnriOo
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 19
Joined: Oct 12th, 2009
Re: TreeLayout
Reply #2 - Dec 9th, 2009 at 9:04am
Print Post  
Yep.. That did the trick.

However when I autoroute using treelayout i get this result:


The link on the left side runs along the side of the root node. If I move it manually the link realignes the way I want :



Is there any way I can control that?

Sorry for the cascade of questions. I like your product a lot but cant seem to locate my ansvers in your documentation.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: TreeLayout
Reply #3 - Dec 9th, 2009 at 9:42am
Print Post  
You could call diagram.RouteAllLinks() after TreeLayout.Arrange().

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