Active document
Get the active document
Get-VisioDocument -ActiveDocumentSet the Active Document
# using a document object
Set-VisioDocument $doc
# Using the name the document
Set-VisioDocument "Drawing5"Checking is the Active Document is valid
If (Test-VisioDocument)
{
# do something
}
else
{
# do something else
}Last updated