API Reference

Cmdlet

Save-OfficeVisio

Aliases: VisioSave
Namespace PSWriteOffice
Aliases
VisioSave
Inputs
OfficeIMO.Visio.VisioDocument
Outputs
OfficeIMO.Visio.VisioDocument System.IO.FileInfo

Saves an OfficeIMO.Visio document.

Remarks

Saves an OfficeIMO.Visio document.

Examples

Authored help example

Save a loaded diagram under a new path.

PS>


$diagram = Get-OfficeVisio -Path .\ServiceMap.vsdx
            $diagram | Save-OfficeVisio -Path .\ServiceMap-copy.vsdx -PassThru
        

Saves an existing OfficeIMO.Visio document to another .vsdx file.

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.

Syntax

Save-OfficeVisio -Document <VisioDocument> [-PassThru] [-Path <String>] [-Show] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Document VisioDocument requiredposition: 0pipeline: True (ByValue)
Visio document to save.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the document object instead of the saved file.
Path String optionalposition: 1pipeline: Falsealiases: FilePath
Optional save-as path.
Show SwitchParameter optionalposition: namedpipeline: False
Open the document after saving.

Outputs

OfficeIMO.Visio.VisioDocument System.IO.FileInfo