Skip to content
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

error message, New VisioShape #79

Open
fe77 opened this issue Feb 24, 2022 · 2 comments
Open

error message, New VisioShape #79

fe77 opened this issue Feb 24, 2022 · 2 comments

Comments

@fe77
Copy link

fe77 commented Feb 24, 2022

Hi Mike,
I am leveraging some sample code you provided to generate a visio document.
When I call this line "New-VisioShape -Master Server -Label $computername -X 3 -Y 7 -Name $computername" I get constantly errors.

Sorry for the french in the error, but I get this :
ne exception s'est produite.
Au caractère C:\Program Files\WindowsPowerShell\Modules\VisioBot3000\1.1\VisioShape.ps1:53 : 13

  •         $DroppedShape=$p.Drop($Master.PSObject.BaseObject,$X,$Y)
    
  •         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (:) [], COMException
    • FullyQualifiedErrorId : System.Runtime.InteropServices.COMException

Impossible d’extraire la variable « $DroppedShape », car elle n’a pas été définie. (not defined)
Au caractère C:\Program Files\WindowsPowerShell\Modules\VisioBot3000\1.1\VisioShape.ps1:54 : 13

  •         $DroppedShape.Name=$Name
    
  •         ~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation : (DroppedShape:String) [], RuntimeException
    • FullyQualifiedErrorId : VariableIsUndefined

Impossible d’extraire la variable « $DroppedShape », car elle n’a pas été définie.
Au caractère C:\Program Files\WindowsPowerShell\Modules\VisioBot3000\1.1\VisioShape.ps1:58 : 9

  •     $DroppedShape.Text=$Label
    
  •     ~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation : (DroppedShape:String) [], RuntimeException

I tried several tests, including hard coding values but I get the same result.
I wanted to know if you could advise me, and if I can on my side some more "debug" to find the root cause.

I thought for example about a problem with English/french install conflict.
Thanks a lot.
Regards.

@MikeShepard
Copy link
Owner

Have you told Visiobot3000 where the 'Server' shape is using Register-VisioStencil and Register-VisioShape ?

@MikeShepard
Copy link
Owner

Also...sorry it took so long to respond. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants