Show / Hide Table of Contents

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
System.Object
DxfFile
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dxflib
Assembly: Dxflib.dll
Syntax
public class DxfFile

Constructors

| Improve this Doc View Source

DxfFile(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 Source

AutoCADVersion

The Files AutoCAD Version AutoCadVersions

Declaration
public AutoCadVersions AutoCADVersion { get; set; }
Property Value
Type Description
AutoCadVersions
| Improve this Doc View Source

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
| Improve this Doc View Source

DxfFileData

The Data List

Declaration
public TaggedDataList DxfFileData { get; }
Property Value
Type Description
TaggedDataList
| Improve this Doc View Source

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
| Improve this Doc View Source

FileName

The filename and the extension of the file that was read.

Declaration
public string FileName { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

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
| Improve this Doc View Source

LastWriteTime

Gets the Last Write Time of the PathToFile

Declaration
public DateTime LastWriteTime { get; }
Property Value
Type Description
System.DateTime
| Improve this Doc View Source

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
| Improve this Doc View Source

PathToFile

The absolute path to the file that is read.

Declaration
public string PathToFile { get; }
Property Value
Type Description
System.String
  • Improve this Doc
  • View Source
Back to top Generated by DocFX