Environment.LoadScene (String) Method

NOTE: This member is now obsolete. This method is deprecated, use OpenFile instead.

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

Public Overridable Sub LoadScene( _ 
ByVal fileName As String
)
This language is not supported or no code example is available.
public virtual void LoadScene( 
string fileName 
)
This language is not supported or no code example is available.

Parameters

fileName
string

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 use the Eyeshot proprietary file format or 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.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition