(-Passthru will output the Graphviz code generated)
If you need a ps1 file with inheritance, check in the example folder: $ModulesFolder\PSClassUtils\Examples\02\Inheritance.ps1
Don't hesitate to shoot me a message on slack, if you want me to test something.
Hi Kevin,
As discussed on Slack, find here some more details on the problem I am facing:
I am using PSClassUtils in order to create UML diagrams using PSGraph.
I am trying to set the arrow color of my edges from black (default) to white (none) in my diagrams.
I use the following function to actually genere the Graphviz code --> https://github.com/Stephanevg/PSClassUtils/blob/master/PsClassUtils/Functions/Private/Out-CUPSGraph.ps1
(The Edge are actually created at line 174)
I thought the change would be as simple as this:
or this
But in both cases, the 'edge' section of the end of the graph, has never the corresponding graphviz data
I have tried using a complex, and more simple example, but in both cases, the data is simply not added:
Current behaviour
I use the code, to generate edges in my diagram:
but it generates:
Graphvizcode
Image
Expected Bahaviour
This is what I would expect to be generated
Image
Reproduction of the problem
This is how you can reproduce the example:
Download PsClassUtils
Install-Module PsClassUtils
Change line 174 of Out-CUPasGraph (located
$ModulesFolder\PSClassUtils\Functions\Private\Out-CUPSGraph.ps1
)from
to
or
open ps prompt as admin, and type the following:
(-Passthru will output the Graphviz code generated) If you need a ps1 file with inheritance, check in the example folder:
$ModulesFolder\PSClassUtils\Examples\02\Inheritance.ps1
Don't hesitate to shoot me a message on slack, if you want me to test something.
Santé!
Stéphane