VB Code (Add-In) To Read UML Objects properties

  • Thread starter Claiton Lovato Junior
  • Start date
C

Claiton Lovato Junior

Hi,

I am creating an Add-In to generate some Word documents from my Visio
Diagrams, and now I need to read the Objects of a an UML Model Diagram, such
as each class and her Attributes, operations (With parameters). Like the
"Static Structure Report" from "UML Report" of Visio
But the only way I found to read this information was from Shapes.Item
(as I show at the ex.). But using this, everything come together: as in
strMethods reads all methods "+Insert() : Boolean +Update() : Boolean
+Delete() : Boolean +Select(in CdTest : Long = 0) : Object ", And with this,
if the user choose to hide some information on the shape I can't get it. I
wanna read the objects properties, each value separated, and for each value
I read I could read his sub-values, as Method Parameters.

Any Idea? I read some thing sayng that this objects are not exposed via the
COM interface, is it true ????



ex:
strClassName = shpObj.Shapes.Item(7).Text
strProperties = shpObj.Shapes.Item(6).Text
strMethods = shpObj.Shapes.Item(5).Text
Thanks,
Claiton
 

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