PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WEBDEV 26 → Adding a complex shape to a diagram library
Adding a complex shape to a diagram library
Started by rob willis, May, 07 2022 9:07 PM - 1 reply
Posted on May, 07 2022 - 9:07 PM
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.
Registered member
65 messages
Posted on May, 13 2022 - 7:25 PM
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
ChrisC