Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Query. (Read 1440 times)
Anant_Shukla
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 36
Joined: Mar 16th, 2009
Query.
Mar 24th, 2009 at 3:39pm
Print Post  
Hi,

I needed to arrange all the links and nodes present on the diagram in GridLayout on click of a button and also I need the links to be straight. Following is the code used by me for the purpose :

GridLayout gridLayout = new GridLayout();
gridLayout.GridSize = gridLayoutSize;
gridLayout.KeepGroupLayout = true;

//Included to prevent multiple layout arrangements
//specify any positive value other then 0 for RandomSeed
gridLayout.RandomSeed = 1;

gridLayout.Arrange(diagram);

//To prevent bending of links
foreach(DiagramLink link in diagram.Links)
{
link.SegmentCount = 1;
}

The issue is for large combination of nodes and links the code is taking lot of time.

Any suggestion how can I resolve the issue.

Thanks and Regards,
Anant Shukla.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Query.
Reply #1 - Mar 24th, 2009 at 6:34pm
Print Post  
Hi,

Try it with GridLayout.UseLongestPath = false.

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