Hi Stoyan, In my diagram I have shape nodes with custom shape. The shape is created dinamically during node creation based on some user parameters. An example of these shapes is the following:
Shape = new Shape(new ElementTemplate[] { new LineTemplate(0, 100, 100, 100), new LineTemplate(100, 100, 100, 0), new LineTemplate(100, 0, 100 - thickness/width*100, 0), new LineTemplate(100 - thickness/width*100, 0, 100 - thickness/width*100, 100 - thickness/height*100), new LineTemplate(100 - thickness/width*100, 100 - thickness/height*100, thickness/width*100, 100 - thickness/height*100), new LineTemplate(thickness/width*100, 100 - thickness/height*100, thickness/width*100, 0), new LineTemplate(thickness/width*100, 0, 0, 0), new LineTemplate(0, 0, 0, 100) }, FillRule.EvenOdd);
When I save to XML a diagram containing these nodes, the node shape is not saved (and consequently is not loaded in the loadFromXML method). Is there a way to save custom shapes?
Best Regards,
Danilo
|