Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) obstacle routing issue (Read 10301 times)
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
obstacle routing issue
Apr 15th, 2013 at 3:57pm
Print Post  
So, I'm creating tables and calling PutObstacle( true ) on them. Later, I'm creating arrows and calling PutAutoRoute( true ) on them. However, the arrows still cross right over my tables. Is there a step I'm missing?
  

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: obstacle routing issue
Reply #1 - Apr 15th, 2013 at 4:03pm
Print Post  
If there are any large background nodes behind the tables, you'll need to set Obstacle to false for them, or otherwise the routing function will fail to find a path. If the tables are close to each other, you might have to assign a smaller value to RoutingOptions.GridSize.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
Re: obstacle routing issue
Reply #2 - Apr 15th, 2013 at 6:20pm
Print Post  
i set the large nodes' obstacle property to false and the grid size to 1. i'm still having problems.

it goes

    target
      |
    table
      |---------source
  

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: obstacle routing issue
Reply #3 - Apr 16th, 2013 at 10:14am
Print Post  
Does it find a path if you call the arrow.Route() method?
  
Back to top
 
IP Logged
 
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
Re: obstacle routing issue
Reply #4 - Apr 17th, 2013 at 6:57pm
Print Post  
sadly, no. i've tried route after creating each arrow, and also routeallarrows when done building the flowchart.
  

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: obstacle routing issue
Reply #5 - Apr 17th, 2013 at 7:41pm
Print Post  
Could you attach here a flowchart file showing the problem?
  
Back to top
 
IP Logged
 
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
Re: obstacle routing issue
Reply #6 - Apr 26th, 2013 at 5:05pm
Print Post  
Stoyo wrote on Apr 17th, 2013 at 7:41pm:
Could you attach here a flowchart file showing the problem?


i can't attach it here in case i mistakenly left any proprietary information in (i think i stripped it all out), but could e-mail it to you! support@mindfusion.eu?
  

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: obstacle routing issue
Reply #7 - Apr 26th, 2013 at 5:12pm
Print Post  
Yes, email it to support@mindfusion and our developer will check it.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: obstacle routing issue
Reply #8 - Apr 26th, 2013 at 5:27pm
Print Post  
There are several large nodes in the background marked as obstacles, at least in the file you sent us, so routing cannot find any path when the target nodes are over them. If you set Obstacle to false for the white "Sometext D(E)" nodes, and the gray ones behind them, routing starts to work.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
Re: obstacle routing issue
Reply #9 - Apr 26th, 2013 at 6:34pm
Print Post  
I believe I found my bug. Still, it's good to know that routing can't occur over non-obstacles. Thanks!
  

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: obstacle routing issue
Reply #10 - Apr 26th, 2013 at 7:04pm
Print Post  
Quote:
Still, it's good to know that routing can't occur over non-obstacles


Actually, it should't be occurring over obstacles, and should be working fine over non-obstacles.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: obstacle routing issue
Reply #11 - Apr 26th, 2013 at 7:12pm
Print Post  
The big white box in the background from the last file was set as an obstacle too. Perhaps we have not used the correct English term ? Smiley Obstacle meaning something obstructing / standing in the link's way, so you must set it to false to stop it from obstructing? Note that setting Obstacle to false does not re-route the links so you might not be seeing the result right away, you will have to move some node or call link.Route to trigger new path-finding.
  
Back to top
 
IP Logged
 
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
Re: obstacle routing issue
Reply #12 - Apr 29th, 2013 at 7:41pm
Print Post  
You expressed it perfectly. I was multitasking and not reading well, sorry. Smiley
  

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
Re: obstacle routing issue
Reply #13 - May 30th, 2013 at 2:03pm
Print Post  
in this flowchart, the only thing that's marked explicitly as an obstacle is the table the arrows are coming from. still, the right-hand arrow crosses back over the table instead of going around it. what did i do wrong this time? Embarrassed[edit] now that i think about it, the box the right-hand arrow is coming out of is *right* on the table's border. that might be the problem. i'm going to nudge it over by one pixel and see what happens.

[edit] even moving it over 20 pixels led to the same result.

[edit] fixed it by using the "LeftInRightOut" anchor pattern. disregard!  Cheesy
  

whynoavoid.rar (Attachment deleted)

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: obstacle routing issue
Reply #14 - May 30th, 2013 at 2:28pm
Print Post  
It got routed for me after calling RouteAllArrows, are you sure you haven't reset its point positions or SegmentCount at some point? Also both arrows are unconnected for some reason, they start at the table boundaries but aren't connected to it. That could happen if you have set AllowUnanchoredArrows property to false and the table doesn't have anchor points, but AllowUnconnectedArrows is true - then drawing links to that table would create unconnected links.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint