Drawings.OpenFile (Stream, Model, FileSerializer) Method
Public Overridable Sub OpenFile( _
ByVal stream As Stream, _
ByVal model As Model, _
Optional ByVal fileSerializer As FileSerializer = null _
)
This language is not supported or no code example is available.
Parameters
- stream
- Stream
The file stream.
- model
- Model
The model control.
- fileSerializer
- FileSerializer
The FileSerializer. Can be null/Nothing.
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.