Eyeshot 10 WinForms API Reference
LoadScene(String) Method

WinForms Assembly > devDept.Eyeshot Namespace > ViewportLayout Class > LoadScene Method : LoadScene(String) Method
File name

Restores the current scene from disk, including entities, textures, blocks and labels.

Syntax
'Declaration
 
Public Overloads Overridable Sub LoadScene( _
   ByVal fileName As String _
) 
public virtual void LoadScene( 
   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
SaveScene Method