Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Anneal Layout Randomness (Read 2990 times)
jmquinlan
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 67
Joined: Apr 2nd, 2009
Anneal Layout Randomness
Apr 8th, 2009 at 10:15am
Print Post  
In regards to this discussion I think I have found a bug.

http://mindfusion.eu/Forum/YaBB.pl?board=general;action=display;num=1239009408

The anneal layout is dependent on the initial positions of the nodes, if the initial positions and sizes are the same then the output of the AnnealLayout arrange method should be the same. That is what I understood from the above discussion.

What I have found is that even if my initial positions are the same and also my initial sizes, the anneal layout arrange method produces different results. Also I set the Randomise flag on the anneal layout to false.

I still get a random layout each time I reload my diagram.
  
Back to top
 
IP Logged
 
jmquinlan
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 67
Joined: Apr 2nd, 2009
Re: Anneal Layout Randomness
Reply #1 - Apr 8th, 2009 at 10:16am
Print Post  
please note that the layout parameters are the same each time I reload my diagram.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Anneal Layout Randomness
Reply #2 - Apr 9th, 2009 at 8:41am
Print Post  
Yep, seems we broke this when we added the LayoutArea property. Nodes that are not in the LayoutArea are still randomized, and the default LayoutArea is an empty rectangle Smiley As a work-around you could set LayoutArea = diagram.Bounds before calling Arrange.

Stoyan
  
Back to top
 
IP Logged
 
jmquinlan
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 67
Joined: Apr 2nd, 2009
Re: Anneal Layout Randomness
Reply #3 - Apr 14th, 2009 at 9:04am
Print Post  
Thanks Ill give that a go
  
Back to top
 
IP Logged
 
jmquinlan
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 67
Joined: Apr 2nd, 2009
Re: Anneal Layout Randomness
Reply #4 - Apr 14th, 2009 at 9:35am
Print Post  
it seems that setting the layout area works Smiley cheers guys Smiley

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