Geometry primitves
In order to use the VisioPS module, you'll have to eventually use Geometric primitives - points and rectangles - with the cmdlets.
Points
A point has primitive type VisioAutomation.Geometry.Point
. They have an X,Y coordinate.
Create a single Point
You can create a point primitive with the New-VisioPoint cmdlet.
You can directly create the type with New-Object.
Create an array of points
Rectangles
The Rectangle primitive has type VisioAutomation.Geometry.Rectangle
. It has is defined by four numbers (Left, Bottom, Right, Top).
Constraints:
Left must always be less than or equal to Right
Bottom must always be less than or equal to Top
Create a single rectangle
To create a rectangle
Or you can use New-Object
Create an array of Rectangles
Last updated