Nevron Open Vision Documentation
Saving and Loading Drawings

Saving and loading drawings in NOV Diagram is done by calling one of the Save... or Load... method overloads of the NDrawingView class.

Save to File or Stream Directly

To save directly to a Nevron XML Drawing call any of the Save methods of the drawing view, for example:

Save to Nevron XML Drawing File
Copy Code
drawingView.SaveToFile(@"D:\Documents\MyDrawing.ndx");

Save to Nevron XML Drawing Stream
Copy Code
drawingView.SaveToStream(stream, new NNevronXmlDrawingFormat());
Show Save File Dialog

To show the standard Save File dialog, use the following overload of the SaveToFile method:

Save File dialog
Copy Code
drawingView.SaveToFile(new NNevronXmlDrawingFormat(), null);
Load from File or Stream Directly

To open directly a Nevron XML Drawing call any of the Load methods of the drawing view, for example:

Load from Nevron XML Drawing File
Copy Code
drawingView.LoadFromFile(@"D:\Documents\MyDrawing.ndx");

Load from Nevron XML Drawing Stream
Copy Code
drawingView.LoadFromStream(stream);
Show Open File Dialog

The following overload of the LoadFromFile method shows an Open File dialog with all supported drawing formats:

Open File dialog
Copy Code
drawingView.LoadFromFile();

If you want the Nevron XML Drawing format to be selected in the Open File dialog, use the following code:

Open File dialog
Copy Code
drawingView.LoadFromFile(new NNevronXmlDrawingFormat(), null);
See Also

File Formats

Send Feedback