VMware Cloud Community
marv0
Contributor
Contributor
Jump to solution

PowerCli - Where is the general information of useable commands to control Visio (2010)

Hello Community!

I started with PoweCLI and it's great. Feeling a bit dirty because my scripts are "beginner level" but ... 😉

So I wanted to document virtual infrastructure with Powershell in Visio. There is some Information about that in some blog articles and it helped me to get the basic job done.

The script I'm working one does:

Get all the Clusters Hosts, Datacenters and Datastorecluster an imports it into Visio. Basic Placement with coordinates created in the script is also done.

Now I've been searching for more commands to use.

I would like to handle some funktions of Visio like - layout functions, size  or alignment.

A command line reference would be fine. Couldn't find one.

Thx for your help!

Martin

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Did you already look at Alan's post vDiagram – Draw your VI with one script


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
4 Replies
LucD
Leadership
Leadership
Jump to solution

Scripting guy Ed Wilson has a nice post on that, see Hey, Scripting Guy! Is It Possible to Automate Microsoft Visio?

In there you find a link to the MSDN documentation on the Application, Document... objects.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
marv0
Contributor
Contributor
Jump to solution

Hi LucD!

i think you the link you mean is this one:  Application Object

The post from Ed Wilson was the one I started with, and it helped a lot.

As I have very basic knowlegde of programming and scripting the way how to find a solution for a task like:

"Find the command to use in PS for aligning in Visio"

isn't clear to me.

I'll try to figure it out.

If you or somebody has an example, I would be glad to see it.

Thx a lot!

Martin

0 Kudos
LucD
Leadership
Leadership
Jump to solution

Did you already look at Alan's post vDiagram – Draw your VI with one script


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
marv0
Contributor
Contributor
Jump to solution

Yes and no Smiley Happy

I wasn't able to download the zip files. After a workarround I got them now.

I'm going to assimilate the knowledge of the script in my own "borg" way.

I tried already the $xyz.ResizeToFitContents()

One of the things I was looking for. (Resizes what you put in Visio, so it's all on a sheet)

For the first I know now where to go.

Thx again for your very fast help. Have a nice day!

Martin

0 Kudos