VisioBot3000 icon indicating copy to clipboard operation
VisioBot3000 copied to clipboard

error message, New VisioShape

Open fe77 opened this issue 3 years ago • 2 comments

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.

fe77 avatar Feb 24 '22 09:02 fe77

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

MikeShepard avatar Apr 25 '22 20:04 MikeShepard

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

MikeShepard avatar Apr 25 '22 20:04 MikeShepard