Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Arrow is going through a box (Read 6283 times)
krebsd
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 13
Joined: Dec 9th, 2005
Arrow is going through a box
Dec 9th, 2005 at 8:58am
Print Post  
I built my own chart without using any layout.
I set the arrowstyle to "EArrowStyle.asBezier" to have only horizontal an vertical lines.
But the arrow doesn't care if there are some boxes in its way.
Which property can I set, that arrows are going around boxes?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrow is going through a box
Reply #1 - Dec 9th, 2005 at 10:41am
Print Post  
Try setting the AutoRoute property of arrows to true, or set the flowchart's RouteArrows property, which is used to initialize the AutoRoute value of new arrows.
  
Back to top
 
IP Logged
 
krebsd
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 13
Joined: Dec 9th, 2005
Re: Arrow is going through a box
Reply #2 - Dec 9th, 2005 at 10:51am
Print Post  
Stoyo,

I tried that:

a = fc.CreateArrow(b, myb)
a.AutoRoute = True
a.Style = EArrowStyle.asBezier
a.ArrowHeadSize = 10

But it didn't change anything.

I also tried: fc.RouteAllArrows()

regards, Daniel.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrow is going through a box
Reply #3 - Dec 9th, 2005 at 11:04am
Print Post  
Hi Daniel,

If you use some large box as a background, make sure that box is not marked as obstacle, i.e. set box.Obstacle = false. Otherwise the path-finding will fail and the arrows will just go straight to their destination.

Stoyan
  
Back to top
 
IP Logged
 
Daniel
Guest


Re: Arrow is going through a box
Reply #4 - Dec 9th, 2005 at 3:01pm
Print Post  
Hi Stoyan,

I tried that, but box.obstacle doesn't change anything.

These are the properties of my flowcharobject:

Code
Select All
fc = New FlowChart

	  fc.MeasureUnit = GraphicsUnit.Pixel
	  fc.DocExtents = New RectangleF(0, 0, 1200, 800)
	  fc.BackColor = Color.White
	  fc.SelectAfterCreate = False
	  fc.SelHandleSize = 6
	  fc.BoxStyle = EBoxStyle.bsRect

	  fc.ArrowHead = EArrowHead.ahBowArrow
	  fc.ArrowHeadSize = 15

	  fc.ArrowsSplittable = True
	  fc.RouteArrows = True
	  'fc.RouteAllArrows() 



These are the properties of my boxes:

Code
Select All
Dim myb As Box = fc.CreateBox(maxx, 70 + i, 90, 40)
						myb.HyperLink = "http://clserv/demopromolpm/Prozess_MV.aspx?ProID=" + CStr(toproid) + "&LangID=1&preview=1"
						myb.Text = proname
						'myb.Tag = toproid
						myb.FillColor = Drawing.Color.YellowGreen
						myb.Obstacle = False 



These are the properties of my arrows:

Code
Select All
a = fc.CreateArrow(b, tb)
				    'a.AutoRoute = True
				    Select Case Request.QueryString("arrowstyle")
					  Case "1"
						a.Style = EArrowStyle.asBezier
					  Case "2"
						a.Style = EArrowStyle.asPerpendicular
					  Case "3"
						a.Style = EArrowStyle.asPolyline
					  Case Else
						a.Style = EArrowStyle.asBezier
				    End Select
				    a.SnapToNodeBorder = True
				    a.ArrowHeadSize = 10 



I'll send you the generated bitmaps by mail.

regards, Daniel.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrow is going through a box
Reply #5 - Dec 9th, 2005 at 3:04pm
Print Post  
Hi Daniel,

Better send me a diagram file created using the SaveToFile method.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrow is going through a box
Reply #6 - Dec 9th, 2005 at 3:18pm
Print Post  
And all boxes that should be avoided must have box.Obstacle = true, only boxes used as background decorations should have set Obstacle=false.

Stoyan
  
Back to top
 
IP Logged
 
krebsd
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 13
Joined: Dec 9th, 2005
Re: Arrow is going through a box
Reply #7 - Dec 9th, 2005 at 3:47pm
Print Post  
Hi Stoyan,

ok now I set box.obstacle = true for all my boxes. That works. Thanks.

But the arrows are going together. So it's not possible to see the relation.

I'll send you the diagram-file.

regards, Daniel.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint