Skip to content

ppt connector add

zmworm edited this page Mar 18, 2026 · 52 revisions

PowerPoint: Connector - Add

Add connector lines between shapes or as standalone lines on a slide.

Path: /slide[N] (parent)

Properties

Property Default Description
x, y 2000000, 3000000 Start position (EMU; ~5.6cm, ~8.3cm)
width, height 4000000, 0 Extent in EMU (~11.1cm, 0)
name Connector {N} Connector name
preset straight straight, elbow, curve
line 000000 Line color
lineWidth 1pt Line width
startShape - Connected start shape ID
endShape - Connected end shape ID

Preset Types

Preset Description
straight Direct straight line
elbow Right-angle connector
curve Curved connector

Examples

# Standalone horizontal line
officecli add slides.pptx /slide[1] --type connector --prop x=5cm --prop y=5cm --prop width=10cm --prop height=0 --prop line=FF0000 --prop lineWidth=2pt

# Elbow connector between shapes
officecli add slides.pptx /slide[1] --type connector --prop preset=elbow --prop startShape=1 --prop endShape=2

# Curved connector
officecli add slides.pptx /slide[1] --type connector --prop preset=curve --prop startShape=1 --prop endShape=3 --prop line=336699 --prop lineWidth=1.5pt

Based on OfficeCli v1.0.6

Clone this wiki locally