P
palomino100
Hi!
I'm trying to write a vba code to autocreate UML model Diagrams. Now,
from VBA editor of VISIO, i can create classes with this code:
Code:
Public Sub TestDropShape()
'Dibuixa les classes millor que l'anterior
Dim stencil As Visio.Document, objshape As Visio.Master
Set stencil = ThisDocument.Application.Documents.Open("UML Static
Structure.vss")
ThisDocument.Application.Windows(ThisDocument.Index).Activate
'Set the ActiveWindow to the drawing window.
Set objshape = stencil.Masters("Class") ' Get the master named
"Circle" and drop that shape on the page!
ThisDocument.Pages(1).Drop objshape, 1, 3 ' Drop the shape,
mstCircle, at location X=1 Y=3
End Sub
But now i'd like to change their properties from vba, like new
methods, properties... Do you know if there is anyway to do this?
Thanks!
Carlos
I'm trying to write a vba code to autocreate UML model Diagrams. Now,
from VBA editor of VISIO, i can create classes with this code:
Code:
Public Sub TestDropShape()
'Dibuixa les classes millor que l'anterior
Dim stencil As Visio.Document, objshape As Visio.Master
Set stencil = ThisDocument.Application.Documents.Open("UML Static
Structure.vss")
ThisDocument.Application.Windows(ThisDocument.Index).Activate
'Set the ActiveWindow to the drawing window.
Set objshape = stencil.Masters("Class") ' Get the master named
"Circle" and drop that shape on the page!
ThisDocument.Pages(1).Drop objshape, 1, 3 ' Drop the shape,
mstCircle, at location X=1 Y=3
End Sub
But now i'd like to change their properties from vba, like new
methods, properties... Do you know if there is anyway to do this?
Thanks!
Carlos