# Add-OfficeVisioConnector

Adds a connector between two Visio shapes. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

Aliases: VisioConnector

**Module**

`PSWriteOffice`

**Aliases**

`VisioConnector`

**Inputs**

`OfficeIMO.Visio.VisioPage`

**Outputs**

`OfficeIMO.Visio.VisioConnector`

**Source**

[AddOfficeVisioConnectorCommand.cs:23](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Visio/AddOfficeVisioConnectorCommand.cs#L23) 

Adds a connector between two Visio shapes.

## Syntax

```
Add-OfficeVisioConnector
[-BeginArrow <Arrow|Triangle>]
[-EndArrow <Arrow|Triangle>]
-From <String>
[-FromSide <Auto|Left|Right|Bottom|Top>]
[-Kind <Straight|RightAngle|Curved|Dynamic>]
[-Label <String>]
[-LineColor <String>]
[-LinePattern <Int32>]
[-LineWeight <Double>]
[-Page <VisioPage>]
[-PassThru]
-To <String>
[-ToSide <Auto|Left|Right|Bottom|Top>]
[<CommonParameters>]
```

[#](#method-add-officevisioconnector-endarrow-endarrow-string-visioside-connectorkind-string-string-int32-double-visiopage-switchparameter-string-visioside)

Parameter set: `ByKey`

```
Add-OfficeVisioConnector
[-BeginArrow <Arrow|Triangle>]
[-EndArrow <Arrow|Triangle>]
-FromShape <VisioShape>
[-FromSide <Auto|Left|Right|Bottom|Top>]
[-Kind <Straight|RightAngle|Curved|Dynamic>]
[-Label <String>]
[-LineColor <String>]
[-LinePattern <Int32>]
[-LineWeight <Double>]
[-Page <VisioPage>]
[-PassThru]
-ToShape <VisioShape>
[-ToSide <Auto|Left|Right|Bottom|Top>]
[<CommonParameters>]
```

[#](#method-add-officevisioconnector-endarrow-endarrow-visioshape-visioside-connectorkind-string-string-int32-double-visiopage-switchparameter-visioshape-visioside)

Parameter set: `ByShape`

## Examples

### Connect two keyed shapes.

```powershell
OfficeVisio -Path .\Flow.vsdx {
    VisioRectangle -Key source -Text 'Source' -X 1 -Y 4
    VisioRectangle -Key target -Text 'Target' -X 4 -Y 4
    VisioConnector -From source -To target -Kind RightAngle -EndArrow Triangle -Label 'sync'
}
```

Adds a routed connector between shapes registered in the current DSL scope.

## Parameters

**-BeginArrow EndArrow optional**

Begin arrow style.

Possible values: `Arrow`, `Triangle`

**-EndArrow EndArrow optional**

End arrow style.

Possible values: `Arrow`, `Triangle`

**-From String requiredsets: ByKey**

Source shape key, id, or name.

**-FromSide VisioSide optional**

Preferred source shape side.

Possible values: `Auto`, `Left`, `Right`, `Bottom`, `Top`

**-Kind ConnectorKind optional**

Connector kind.

Possible values: `Straight`, `RightAngle`, `Curved`, `Dynamic`

**-Label String optional**

Connector label.

**-LineColor String optional**

Line color name or hex value.

**-LinePattern Int32 optional**

Native Visio line-pattern index: 0 hides the line, 1 is solid, and 2 through 23 select built-in patterns.

**-LineWeight Double optional**

Line weight.

**-Page VisioPage optionalpipeline: True (ByValue)**

Target page. Optional inside VisioPage or OfficeVisio.

**-PassThru SwitchParameter optional**

Emit the object created or changed by the command.

**-To String requiredsets: ByKey**

Target shape key, id, or name.

**-ToSide VisioSide optional**

Preferred target shape side.

Possible values: `Auto`, `Left`, `Right`, `Bottom`, `Top`

**-FromShape VisioShape requiredsets: ByShape**

Source shape object.

**-ToShape VisioShape requiredsets: ByShape**

Target shape object.

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:305DCA6A08B0C1A74EA945A89954C0D08B7D54AC09F6AC76E7DF63DCC405365F -->
