ReadFile(String, FileSerializer, Boolean) Constructor

File name and fileSerializer constructor.
Public Sub New( _ 
ByVal fileName As String, _ 
ByVal fileSerializer As FileSerializer, _ 
Optional ByVal headerOnly As Boolean = false _ 
)
This language is not supported or no code example is available.
public ReadFile( 
string fileName
FileSerializer fileSerializer
bool headerOnly = false 
)
This language is not supported or no code example is available.

Parameters

fileName
string

The file name

fileSerializer
FileSerializer

The file serializer that must be used to read the file. Use this when you need to include additional fields definition for reading custom entities.

headerOnly
bool

When true only the file header is read.

Remarks
 
If you want to include special Autodesk objects like LayerEx, LinearPathEx, PictureEx, etc. you need to pass a new FileSerializerEx() as fileSerializer parameter. Use the FileSerializer constructor to initialize it.

.NET Framework

Supported in: 4.8

In this article

Definition