Finding paths in Visio flowchart

O

ofik

Hello,


I have a very complex Visio diagram. I want to find out all the possible
paths between starting and ending point. Any idea how can I do it?

Thanks
 
M

Michel LAPLANE \(MVP\)

well, i'm afraid you must code it in vba. are you ready to do it and need
some help ?

Enjoy with visio
 
A

Al Edlund

Michel,
I sent you an e-mail offline,
Al
Michel LAPLANE (MVP) said:
well, i'm afraid you must code it in vba. are you ready to do it and need
some help ?

Enjoy with visio
 
O

ofik

I'll be more than a thankful if you help me since i don't have a vb
programmig experince
 
M

Michel LAPLANE \(MVP\)

Well you not choose the simplest way to learn.
First have a look to the Visio sdk and try this primitive samples :

Public Sub LinkListOfPage()
Dim arShapes As Shapes
Dim arConnects As Connects
Dim curShape, beginShape, endShape, linkShape As Shape
Dim curConnect As Connect
Dim strBeginShapeName As String

' retrieve all shapes of the page
Set arShapes = Application.ActivePage.Shapes
For Each curShape In arShapes
' retrieve only the links
bType = curShape.OneD
If bType = True Then
'Retrieve the connection points
Set arConnects = curShape.Connects
For Each curConnect In arConnects
'Retrieve the name of the link (you can optimize and
' test if it is the first element of the loop)
Set linkShape = curConnect.FromSheet
If curConnect.FromPart = VisFromParts.visBegin Then
' retrieve the begin shape
Set beginShape = curConnect.ToSheet
End If
If curConnect.FromPart = VisFromParts.visEnd Then
' retrieve the end shape
Set endShape = curConnect.ToSheet
End If
Next
MsgBox "The link " + linkShape.Name + _
" is from " + beginShape.Name + _
" to " + endShape.Name
End If
Next
End Sub

Try it with some Processus shape linked with each other.

Enjoy with visio.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top