Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Save-OfficeVisio

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

Saves an OfficeIMO.Visio document.

Syntax

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

Examples

Save a loaded diagram under a new path.

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

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

Parameters

-Document VisioDocument requiredposition: 0pipeline: True (ByValue)
Visio document to save.
-PassThru SwitchParameter optional
Emit the document object for further processing.
-Path String optionalposition: 1aliases: FilePath
Optional save-as path.
-Show SwitchParameter optional
Open the document after saving.
-WhatIf SwitchParameter optional
Shows what would happen if the command runs.
-Confirm SwitchParameter optional
Prompts for confirmation before running the command.

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.