Examples/VisioDSL5_Multipleconnections.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#clean-up because I'm re-running this over and over
stop-process -Name VISIO -ea SilentlyContinue
remove-item c:\temp\testvisio5.vsdx -ea SilentlyContinue
import-module VisioBot3000 -Force

Diagram C:\temp\TestVisio5.vsdx  

# Define shapes, containers, and connectors for the diagram
Stencil Servers -From SERVER_U.vssx
Shape WebServer -From Servers -MasterName 'Web Server'
Shape SQLServer -From Servers -MasterName 'Database Server'
Connector SQL -Color Red -arrow 

#this is the diagram
WebServer Web1
WebServer Web2
WebServer Web3
Set-RelativePositionDirection Vertical
SQLServer DB1
SQLServer DB2

SQL -from Web1,Web2,Web3 -to DB1,DB2



Complete-Diagram