Table of Contents

Class DxfDocument

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

What DxfReader read from a DXF file: the shapes of its entities in file order, its layers, its unit and version, and what it left out.

public sealed class DxfDocument
Inheritance
DxfDocument
Inherited Members

Remarks

Nothing in it follows the order of a dictionary: the entities and the layers are in the order of the file, and Skipped in the order of the names of the types.

Properties

Blocks

Gets the blocks the file defines, in the order of the file, each with its own entities in its own coordinates; the INSERTs of the drawing are read in Shapes as the entities they place. The blocks of the layouts, *Model_Space and *Paper_Space, are not among them.

LayerTable

Gets the layers of the layer table, in the order of the table, each with its colour, linetype and lineweight and whether it is off, frozen, locked and plotted. A record of a name that an earlier one differs from only in case is left out, the first kept, as Layers keeps the first spelling; a layer an entity is on that the table does not list is in Layers and not here.

Layers

Gets the names of the layers: those of the layer table in the order of the file, then any an entity is on that the table does not list, in the order they are first met. Two names that differ only in case are one layer, as in AutoCAD, named as first written.

Shapes

Gets the shapes read, each with its look, in the order of the file, an INSERT's where the INSERT stands: the entities of its block placed, in the order of the block. One entity of the file can give more than one: a 3DFACE whose four corners are not in one plane is two triangles, both with its handle, and a block of 50 entities placed by 10 000 INSERTs is 500 000.

Skipped

Gets, for each type of entity some of which were not read, how many were not, in the order of the names of the types: the entities of the types that are not read at all (HATCH, DIMENSION, ATTRIB and the like) and those that have no shape to them, such as a LINE of no length, a CIRCLE of no radius or a TEXT of no height, each time a block places it; and the INSERTs that place nothing, of a block the file does not define or of one inside itself among them.

Units

Gets the unit the file says its drawing is in ($INSUNITS): Millimeters for a file DxfWriter wrote, Undefined where the file says none.

Version

Gets the version of AutoCAD the file is written for ($ACADVER), such as AC1015 for R2000; null where the file does not say.

Warnings

Gets what the reader has to say about the file, each a sentence: a part of it that is not read, such as the entities of paper space or an INSERT of a block the file does not define, or one read otherwise than it might be, such as a spline given by its fit points alone.

Methods

GetLayer(string)

Gets a layer of the layer table by its name.

OfType<T>()

Gets the shapes of a type, in the order of the file.

OnLayer(string)

Gets the shapes on a layer, in the order of the file.