Quote:Arrows are drawn over the boxes. Is there a possibility to avoid it when arranging the diagram using tree layout.
These are the arrows that TreeLayout ignores as not being part of the tree and you reset to default 3-segment shape. With Pro edition you could call their Route method to avoid overlaps with nodes. In standard edition you can remove the overlaps only by specifying new control point positions via the CtrlPt* properties.
Quote:In the box of style "bsRhombus", I would like to have the outgoing arrows from right and bottom like the picture in my first post (SampleFlowChart.png).
You will have to code this yourself. None of the built-in layout classes arranges nodes to the right and bottom of decision boxes specifically. Doing that for a single decision box looks like this in VB:
If box.Style = bsRhombus Then
Dim n1 As box, n2 As box
Set n1 = box.OutgoingArrows(0).DestinationBox
Set n2 = box.OutgoingArrows(1).DestinationBox
n1.MoveTo box.right + 30, box.top
n2.MoveTo box.left, box.bottom + 30
box.OutgoingArrows(0).Style = asPolyline
box.OutgoingArrows(0).Segments = 1
box.OutgoingArrows(1).Style = asPolyline
box.OutgoingArrows(1).Segments = 1
End If
If your graphs are limited to at most two arrows going out from a decision box and one arrow from a regular box, you could probably devise some algorithm to arrange them in a grid, where each decision adds a new row and column to the grid, while other boxes are added to existing rows or columns depending on layout orientation.
I hope that helps,
Stoyan