Eyeshot 10 WPF API Reference
SaveScene(Stream) Method

WPF Assembly > devDept.Eyeshot Namespace > ViewportLayout Class > SaveScene Method : SaveScene(Stream) Method
The file stream
Saves the current scene on disk, including entities, textures, blocks and layouts.
Syntax
'Declaration
 
Public Overloads Overridable Sub SaveScene( _
   ByVal stream As Stream _
) 
public virtual void SaveScene( 
   Stream stream
)

Parameters

stream
The file stream
Remarks

This command can be very attractive to save and load models in you program but has a serious pitfall: it is based on standard .NET Serialization. This means that any change on the Eyeshot binaries (dll versions, dll names, type names, etc.) will invalidate all your existing files. We strongly recommend to implement your own file format (simply writing entities properties and recreating entities during file loading) if you need continuity between different Eyeshot DLL versions. Another option can be to use one of the standard format supported (DWG/DXF/IGES) where applicable.

The closing of the stream is delegated to you.

See Also

Reference

ViewportLayout Class
ViewportLayout Members
Overload List
LoadScene Method