Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) About anchoring and layout (Read 5246 times)
vtortola
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 104
Joined: Nov 26th, 2008
About anchoring and layout
Jan 22nd, 2009 at 12:42pm
Print Post  
Hi,

I've been playing with the automatic layouts for a time and I've only got really awful designs, I guess I'm doing something weird with anchors and links type.

I have to create a lot of table nodes in the diagram, the tables are going to be linked between them like a database schema (is gonna be that indeed), similar to the ClassDiagram example but more complicated. I need to arrange the tables in a layout that avoid crossing links as much as possible; and doesn't matter where in the table the link is attached.

What would you recommend me?  I need build something similar to the "Database Diagram" in "Microsoft SQL Server Management Studio Express". (If you have the chance to give a look to this program, when you move a table, the anchors move automatically to the best fit position)

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: About anchoring and layout
Reply #1 - Jan 22nd, 2009 at 2:48pm
Print Post  
Could you email a sample diagram of yours to support@mindfusion.eu?
« Last Edit: Jan 22nd, 2009 at 4:31pm by Stoyo »  
Back to top
 
IP Logged
 
vtortola
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 104
Joined: Nov 26th, 2008
Re: About anchoring and layout
Reply #2 - Jan 22nd, 2009 at 4:24pm
Print Post  
Sure.

I've sent a small solution.

Thanks and kind regards.
  
Back to top
 
IP Logged
 
vtortola
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 104
Joined: Nov 26th, 2008
Re: About anchoring and layout
Reply #3 - Jan 22nd, 2009 at 4:44pm
Print Post  
One thing I forgot to say... the tables have to remain as close as possible.

Cheers.
  
Back to top
 
IP Logged
 
vtortola
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 104
Joined: Nov 26th, 2008
Re: About anchoring and layout
Reply #4 - Jan 28th, 2009 at 12:03pm
Print Post  
Hi, any new on this?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: About anchoring and layout
Reply #5 - Jan 28th, 2009 at 12:26pm
Print Post  
Hi, our developer will check it soon.

Stoyan
  
Back to top
 
IP Logged
 
vtortola
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 104
Joined: Nov 26th, 2008
Re: About anchoring and layout
Reply #6 - Jan 28th, 2009 at 2:02pm
Print Post  
thanks Smiley
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: About anchoring and layout
Reply #7 - Feb 2nd, 2009 at 8:42am
Print Post  
If you like this layout:


get the latest build of the control here:
https://mindfusion.eu/_beta/wpfdiag211.zip

and use code like this:
Code
Select All
private void ArrangeDiagramTables()
{
	foreach (DiagramLink link in DataBaseDiagram.Links)
		link.Style = LinkStyle.Cascading;

	GridLayout layout = new GridLayout();
	layout.GridSize = 300;
	layout.Arrange(DataBaseDiagram);

	OrthogonalRouter router = new OrthogonalRouter();
	router.Arrange(DataBaseDiagram);

	DataBaseDiagram.ResizeToFitItems(10,true);
}
 



GridLayout is a bit random, so you might let your users apply it several times to get a configuration they like, or otherwise run more iterations to get better arrangement from the start.

If that's not good enough, email us some drawing showing how you imagine the tables should be arranged.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
vtortola
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 104
Joined: Nov 26th, 2008
Re: About anchoring and layout
Reply #8 - Feb 2nd, 2009 at 12:31pm
Print Post  
Looks good, thanks very much. Sometimes needs a couple of iterations extra but is ok Cheesy

One thing... those assemblies are newer ?

For example the MindFusion.Diagramming.Wpf.dll is the 2.1.0.18545 and I already have the 2.1.0.20413.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: About anchoring and layout
Reply #9 - Feb 2nd, 2009 at 12:41pm
Print Post  
Ignore the build numbers. Seems the developer didn't compile them on our build system but on her own PC, so the compiler used a different version sequence.

Stoyan
  
Back to top
 
IP Logged
 
vtortola
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 104
Joined: Nov 26th, 2008
Re: About anchoring and layout
Reply #10 - Feb 2nd, 2009 at 1:14pm
Print Post  
Thanks Stoyo.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint