Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic NetDiagram Layouts (Read 5700 times)
manu
YaBB Newbies
*
Offline


Manu bhai moter chale
pum pum pum...

Posts: 25
Location: Japan
Joined: May 25th, 2008
NetDiagram Layouts
May 29th, 2008 at 6:40am
Print Post  
Hello all,

I have to display a Organization chart using asp.net 2.0 & NetDiagram 1.0.4

I used Table type node to display employee enformation like: name, phone, email, position, image etc.

After creating all nodes and links i am using following code to layout the diagram:

Dim ll As MindFusion.Diagramming.WebForms.Layout.LayeredLayout = New MindFusion.Diagramming.WebForms.Layout.LayeredLayout()
ll.LayerDistance = 30
ll.KeepGroupLayout = True
ll.Margins = New System.Drawing.SizeF(10, 10)
ll.NodeDistance = 45
ll.SplitLayers = False
ll.Orientation = MindFusion.Diagramming.WebForms.Layout.Orientation.Vertical
ll.LinkType = LayeredLayoutLinkType.Cascading
ll.Anchoring = Anchoring.Keep
ll.TimeLimit = 1000
ll.ArrowsCompactFactor = 5
ll.Arrange(FC)
FC.FitDocToObjects(10)

Rest everything is fine but the arrow lines from parent to diffrent childs overlap each other and its impossible to know which all childs belong to which parent.


Properties of flowchart i set:
FC.BackColor = Color.White
           FC.ZoomFactor = 100
           FC.SelectAfterCreate = False
           FC.AntiAlias = drawing.Drawing2D.SmoothingMode.HighQuality
           FC.TableStyle = TableStyle.Rectangle
           FC.TableColumnCount = 1
           FC.TableRowCount = 0
           FC.TableRowHeight = 8
           FC.RoundedArrows = True
           FC.RoundedArrowsRadius = 30
           FC.RoundRectFactor = 1
           FC.ArrowStyle = ArrowStyle.Polyline
           FC.ArrowHead = ArrowHead.BowArrow
           FC.ArrowHeadSize = 4
           FC.ImageFormat = "image/jpeg"
           FC.ImageQuality = 100

Properties i set for table nodes:
t.RowCount = 0
       t.ColumnCount = 1
       t.ColumnWidth = 20
       t.RowHeight = 8

       t.CellFrameStyle = CellFrameStyle.Simple
       t.Pen = New MindFusion.Drawing.Pen(drawing.Color.LightGray, 0.1)
       t.LinkStyle = TableLinkStyle.Table
       t.Expandable = True
       t.AnchorPattern = AnchorPattern.TopInBottomOut
       t.Brush = New MindFusion.Drawing.SolidBrush(drawing.Color.LightYellow)

       t.CaptionBackBrush = New MindFusion.Drawing.SolidBrush(drawing.Color.LightSkyBlue)
       t.CaptionHeight = 8
       t.Font = New System.Drawing.Font("Verdana", 8, FontStyle.Regular, GraphicsUnit.Point)




Is there any solution to this problem

Please help.............

Regards
Manu


  

Regards&&Manoj
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: NetDiagram Layouts
Reply #1 - May 29th, 2008 at 8:36am
Print Post  
Hi,

Try running the OrthogonalLayout after applying LayeredLayout; this should separate the links so that they are easier to distinguish.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
manu
YaBB Newbies
*
Offline


Manu bhai moter chale
pum pum pum...

Posts: 25
Location: Japan
Joined: May 25th, 2008
Re: NetDiagram Layouts
Reply #2 - May 29th, 2008 at 1:50pm
Print Post  
Thanks a lot, :)

It really helped.

[b]I wrote following code:[/b]

Dim oo As MindFusion.Diagramming.WebForms.Layout.OrthogonalLayout = New MindFusion.Diagramming.WebForms.Layout.OrthogonalLayout
oo.Anchoring = Anchoring.Keep
oo.BendDistance = 1
oo.Direction = Direction.Straight
oo.LayerDistance = 100
oo.SplitGraph = True
oo.Orientation = MindFusion.Diagramming.WebForms.Layout.Orientation.Vertical
oo.PutEndPointsAtNodeBorders = True
oo.NodeDistance = 50
oo.KeepGroupLayout = True



[b]Please advice if i could do better then this.[/b]

Regards
Manu
  

Regards&&Manoj
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: NetDiagram Layouts
Reply #3 - May 29th, 2008 at 1:58pm
Print Post  
I don't know 8) Could you upload a screenshot of what you are getting with this, or email your saved diagram file to support@mindfusion.eu?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: NetDiagram Layouts
Reply #4 - May 30th, 2008 at 6:23am
Print Post  
In regards to grouping the children together - use TreeLayout instead of LayeredLayout. TreeLayout ignores links that deviate from a strict hierarchy, say a child node with two parents will have only one of its incoming links processed by TreeLayout, but that should not be a problem since you are running OrthogonalLayout to arrange the links after that. Additionally, the links should be distributed better if you set oo.Anchoring = Anchoring.Ignore when running OrthogonalLayout.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
manu
YaBB Newbies
*
Offline


Manu bhai moter chale
pum pum pum...

Posts: 25
Location: Japan
Joined: May 25th, 2008
Re: NetDiagram Layouts
Reply #5 - Jun 10th, 2008 at 7:44am
Print Post  
Hi Stoyan,

Is it possible to export the Diagram to Visio 2003?

Thanks & Regards
Manoj
  

Regards&&Manoj
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: NetDiagram Layouts
Reply #6 - Jun 10th, 2008 at 8:12am
Print Post  
Hi Manoj,

That's possible with version 2 of the control, which we are releasing just now.

Stoyan
  
Back to top
 
IP Logged
 
manu
YaBB Newbies
*
Offline


Manu bhai moter chale
pum pum pum...

Posts: 25
Location: Japan
Joined: May 25th, 2008
Visio Export
Reply #7 - Jun 10th, 2008 at 12:11pm
Print Post  
Thanks,

When can i download version 2 of NetDiagram ??
On download section i am only able to find 1.0.4

Please Help
Regards
  

Regards&&Manoj
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: NetDiagram Layouts
Reply #8 - Jun 10th, 2008 at 2:05pm
Print Post  
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint