Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Pathfinder example (Read 1572 times)
BidMaestro
Junior Member
**
Offline


to learn is to live

Posts: 74
Location: Australia
Joined: Apr 20th, 2008
Pathfinder example
Apr 12th, 2010 at 9:00am
Print Post  
Stoyan

I could not find a sample vb program that displays pathfinder working. Can you point me in the right direction for a demo.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Pathfinder example
Reply #1 - Apr 12th, 2010 at 1:17pm
Print Post  
For example this prevents user from drawing cycles in the diagram by means of PathFinder:

Code
Select All
Private Sub diag_LinkCreating(ByVal sender As System.Object, ByVal e As MindFusion.Diagramming.LinkValidationEventArgs) Handles diag.LinkCreating
	Dim finder As New PathFinder(diag, True)
	If finder.FindShortestPath(e.Destination, e.Origin) IsNot Nothing Then
		e.Cancel = True
	End If
End Sub 



You can also find a VB version of the FCDemo sample project below; it has some pathfinding shown in one of the steps:
https://mindfusion.eu/_samples/DemoVb.zip

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


to learn is to live

Posts: 74
Location: Australia
Joined: Apr 20th, 2008
Re: Pathfinder example
Reply #2 - Apr 12th, 2010 at 1:57pm
Print Post  
Stoyan

Thank you; I had created a basic example for myself however I wanted to see some examples. In the provided demo there is a PathFinding example under Graph management which has give me a few more ideas.

Doug
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint