Model.OpenFile (Stream, Drawings, FileSerializer) Method

Restores the scene synchronously from disk, including entities and all the master collections (layers, blocks, etc.)
Public Overridable Sub OpenFile( _ 
ByVal stream As Stream, _ 
Optional ByVal drawings As Drawings = null, _ 
Optional ByVal fileSerializer As FileSerializer = null _ 
)
This language is not supported or no code example is available.
public virtual void OpenFile( 
Stream stream
Drawings drawings = null, 
FileSerializer fileSerializer = null 
)
This language is not supported or no code example is available.

Parameters

stream
Stream

The file stream.

drawings
Drawings

The drawings control. Can be null/Nothing.

fileSerializer
FileSerializer

The FileSerializer. Can be null/Nothing.

Remarks
 

This command is based on Eyeshot proprietary file format. If the fileSerializer param is null, it skips some particular Autodesk properties like XData and your custom entities. If you want to run the operation asynchronously, use the ReadFile class in conjunction with Environment.StartWork method.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition