I’m pretty new to Visio and Aspose.Diagram, and I need help because I stuck.
I am using standard Visio shapes “Software and Database->Software->UML Class”.
My goal is to add Class element and then add Member element to it.
After some reading i think that Class element is container. I can add Class by:
long classId = diagram.AddShape(4.25, 5.5, 2, 1, @“Class”, 0);
Shape shapeC = diagram.Pages.Shapes.GetShape(classId);
But the problem is when I try to add Member
long memberId = diagram.AddShape(4, 5, @“Member”, 0);
The debug process never reach the next step , but the program is working.
My question is how I can add a member to Class(container).
I check the documentation and gluing look promising, but the examples are with already created elements. And I am having a problem with placing an element in a page.
Any ideas are welcome.
SampleOutput.7z (23.9 KB)