Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Open-OfficeVisio

Module
PSWriteOffice
Inputs
System.String
Outputs
OfficeIMO.Visio.VisioDocument

Loads an existing .vsdx file as an OfficeIMO.Visio document.

Syntax

Open-OfficeVisio
[[-Content] <ScriptBlock>]
[-PassThru]
[-Path] <String>
[-Show]
[<CommonParameters>]
#
Parameter set: Path
Open-OfficeVisio
[[-Content] <ScriptBlock>]
-LiteralPath <String>
[-PassThru]
[-Show]
[<CommonParameters>]
#
Parameter set: LiteralPath

Examples

Open and inspect a Visio document.

$diagram = Open-OfficeVisio -Path .\ServiceMap.vsdx
Open-OfficeVisioInfo -Document $diagram -AsText

Loads an existing .vsdx file and creates a deterministic inspection snapshot.

Parameters

-Content ScriptBlock optionalposition: 1
An optional authoring block; omission returns the live document.
-PassThru SwitchParameter optional
Emit the FileInfo after a completed authoring block.
-Path String requiredposition: 0pipeline: True (ByValue)sets: Path
Visio .vsdx path.
-Show SwitchParameter optional
Open the saved document after a completed authoring block.
-LiteralPath String requiredpipeline: True (ByPropertyName)aliases: FullName, PSPathsets: LiteralPath
Exact source path without wildcard expansion.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.