Class DxfFile
The DxfFile Class: is a class that is designed to replicate the properties and methods of a DXF file. It is the root class for all entities and is required for reading a file.
Inheritance
Inherited Members
Namespace: Dxflib
Assembly: Dxflib.dll
Syntax
public class DxfFile
Constructors
| Improve this Doc View SourceDxfFile(String)
Constructor that requires a path to a file. This constructor will read the file and set up all of the required tools for the DxfFile class
Declaration
public DxfFile(string pathToFile)
Parameters
Type | Name | Description |
---|---|---|
System.String | pathToFile | An absolute or relative path to a dxf file |
Properties
| Improve this Doc View SourceAutoCADVersion
The Files AutoCAD Version AutoCadVersions
Declaration
public AutoCadVersions AutoCADVersion { get; set; }
Property Value
Type | Description |
---|---|
AutoCadVersions |
CurrentLayer
The Current Layer of the file. This is the last layer that was selected before the file was saved.
Declaration
public Layer CurrentLayer { get; set; }
Property Value
Type | Description |
---|---|
Layer |
DxfFileData
The Data List
Declaration
public TaggedDataList DxfFileData { get; }
Property Value
Type | Description |
---|---|
TaggedDataList |
Entities
The Entities property is a list of all the entities that were read from the file. The Entity types can be changed into any other type of derived class.
Declaration
public EntityCollection Entities { get; set; }
Property Value
Type | Description |
---|---|
EntityCollection |
FileName
The filename and the extension of the file that was read.
Declaration
public string FileName { get; }
Property Value
Type | Description |
---|---|
System.String |
LastSavedBy
The username of the person who the file was last saved by
Declaration
public string LastSavedBy { get; set; }
Property Value
Type | Description |
---|---|
System.String |
LastWriteTime
Gets the Last Write Time of the PathToFile
Declaration
public DateTime LastWriteTime { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
Layers
The Layer Dictionary is a LayerDictionary object that is designed to hold all of the layers.
Declaration
public LayerDictionary Layers { get; }
Property Value
Type | Description |
---|---|
LayerDictionary |
PathToFile
The absolute path to the file that is read.
Declaration
public string PathToFile { get; }
Property Value
Type | Description |
---|---|
System.String |