If you run the AD diagramming script we looked at recently and save the Vision drawing on problem is that the stencil doesn’t open with it. We have to go back and add it
001
002 003 004 005 006 007 008 009 010 |
$visio = New-Object -ComObject Visio.Application
$doc = $visio.Documents.Open("C:\Scripts\Visio\adtest.vsd") ## set active page ## Add a stencil |
That enables us to start working on the document manually but can we discover the objects in the drawing?