Nevron Forum

Serialize the diagram

https://www.nevron.com/Forum/Topic3356.aspx

By Luis Mendes - Wednesday, April 14, 2010

Is there a way I can serialize the diagram? nDrawingView? I need to serialize the diagram, vertices, edges, layout, colors .... to a string and load the diagram at a later time from it. Any help?

Thanks.

 

By Nevron Support - Thursday, April 15, 2010

Hi Luis,

You can take a look at the following topic in the documentation:
Diagram for .NET > User's Guide > Extensions > Persistency Manager

It explains how you can save/load drawing and library documents to/from different serialization formats.
By Trond Borg - Thursday, December 27, 2012

I see you can serialize a NPersistentDocument. But how about a NDrawingDocument?

I only see the option to save those to files?

It would be very useful to be able to serialize a NDrawingDocument to for example XML so this can be saved and retrieved from a SQL database for example.

Is there any way to do this?