Accueil → WEBDEV 26 → Adding a complex shape to a diagram library
Adding a complex shape to a diagram library
Débuté par rob willis, 07 mai 2022 21:07 - 1 réponse
Posté le 07 mai 2022 - 21:07
Is there any documentation or code example to add a complex shape to a diagram library? PCSoft demonstrates a harbor with ship icons and electrical diagrams but no where is there a way to actually build/add those shapes to a library.
Membre enregistré
65 messages
Posté le 13 mai 2022 - 19:25
Maybe you figured this out already-
If you add your complex shape to a diagram and then do a DiagramSave(ALibraryName, "LibraryFileName.wddiag")
That "LibraryFileName.wdDiag" file is your library.

So if you have a diagram that you use as a library. - MyLibrary.wddiag
You can Create a diagram
DiagramLoadLibrary( your library)
Add it to a diagram
Create your complex shape
add it to the diagram
then save that diagram as your Library.
Your Complex Shape should now be part of your library.

Apparently, every wddiag diagram is, and can be loaded as, a library.

Hope this helps