how to programatically retrieve class properties of a uml class in visio?


S

shakil.sadaf

Hi All,

I am writing some vaba macros in visio and want to retrieve the
properties of a class in a class diagram. Can any of youl please tell
me how details of attributes(such as name, type, visibility etc.) and
methods ( such as name, parameters, visibilty etc.) of a class in a UML
class diagram can be accessed programatically in vba.

Thanks and Regards,
Sadaf.
 
Ad

Advertisements

J

JuneTheSecond

Some of them, but not all can be read by
Sub test()
Dim shp As Visio.Shape
Set shp = ActivePage.Shapes(1)
Dim child As Visio.Shape
For Each child In shp.Shapes
Debug.Print child.Name, child.Text
Next
End Sub
 

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