I want to get the shape information out of a state (UML Standard Stencil). You can see in the picture the title "Aktiv" and "Eintritt/" etc. I have no clue where to get this as a variable.
Edit: To make it clear, I don't know how I can get the information out of a UML shape in Visio. Here is an example code:
Private Sub test()
Dim s As Shape
Dim vsoPage As Visio.Page
Dim getStateName As String
'I need the name for example "Aktiv" from the state
'and the name of the "Sub" information as "Eintritt" etc.
Set vsoPage = ThisDocument.Pages(1)
For Each s In vsoPage.Shapes
getStateName = s.????
Next s
End Sub
Okay I found a solution, I don't know if there is a nicer one though.
with
So the state shape contains actually two shapes thus you can get the information from Item 1 or 2.