Eyeshot 9.0 WinForms API Reference
SaveScene(String) Method

WinForms Assembly > devDept.Eyeshot Namespace > ViewportLayout Class > SaveScene Method : SaveScene(String) Method
File name
Saves the current scene on disk, including entities, textures, blocks and layouts.
Syntax
'Declaration
 
Public Overloads Overridable Sub SaveScene( _
   ByVal fileName As String _
) 
public virtual void SaveScene( 
   string fileName
)

Parameters

fileName
File name
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.

See Also

Reference

ViewportLayout Class
ViewportLayout Members
Overload List
LoadScene Method