-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem creating shape #102
Comments
i added as a test $stencil_comp = Open-VisioDocument "Computers and Monitors.vss" and it came back with a list of the objects. i get nothing back from $grp = Open-VisioDocument "actdir_u.vstx" |
Try changing ... get-visiomaster -Name * -document $stencil_comp |
However when trying to place it... PS C:\WINDOWS\system32> $shapes = New-VisioShape -Master $g -Points 2.2,6.8
|
Tried various variations with the same lack of luck.. $shapes = New-VisioShape -Master $g -Points @(2.2,6.8) or more elaborate $point1 = New-Object VisioAutomation.Geometry.Point 2.0, 6.0 Assuming $pc_master is correctly set$shapes = New-VisioShape -Masters $pc_master -Points $points |
Sorry for the late response @guldmann0211. Will take a look very, very soon. |
i am having an issue creating a shape from the "Active Directory US" template. It can seem to find the shape listed. so the object is coming back as null. I know i am doing something probably simple wrong. Can someone help please. Is there an easy way to masters for a given visio doc.
The code open visio, create the page and then loads the active direct template but i can seem to grab the group or other objects from the shape template.
Mycode:
`
Import-Module Visio
$app= New-VisioApplication
$doc = New-VisioDocument
$grp = Open-VisioDocument "actdir_u.vstx"
$g = get-visiomaster -Name "Group" $grp
$shapes = New-VisioShape -Master $g -Points 2.2,6.8
`
The text was updated successfully, but these errors were encountered: