Table of Contents

Class DxfReadOptions

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

How DxfReader reads a DXF file: whether a drawing in the plan comes back as shapes of the plane, whether its numbers are scaled to millimetres, and the tolerance that says which entities have no shape to them.

public sealed class DxfReadOptions
Inheritance
DxfReadOptions
Inherited Members

Remarks

The defaults read a file as it is: every shape of space, the numbers as the file prints them, and the default tolerance. new DxfReadOptions { PlanAs2D = true } reads a plan drawn in AutoCAD as polylines, arcs and circles of the plane.

Properties

ExpandBlocks

Gets or sets whether each INSERT is read as the entities of its block, placed where it puts them; true by default. False leaves the INSERTs out, counted in Skipped: the blocks are read into Blocks either way.

KeepGroups

Gets or sets whether each entity keeps every group of its record as the file has it, in Groups; true by default. False leaves them empty, which a large file reads in less memory: the shapes and the look of the entities are read either way.

MaxPlacedEntities

Gets or sets how many entities the INSERTs may place from blocks in one reading, counted across the drawing and the blocks read for Blocks; 2 000 000 by default.

PlanAs2D

Gets or sets whether an entity that lies on the floor is read as the shape of the plane it is. False by default, which reads every entity as the shape of space it is.

SupportFolders

Gets or sets the folders a DWG's files of shapes are looked for in, in their order, as AutoCAD looks in its support folders; empty by default. Used where DwgReader reads a DWG.

ToMillimeters

Gets or sets whether the coordinates and sizes are scaled to millimetres by the unit the file says it is in (Units): a drawing in metres has its numbers times 1 000. False by default, which keeps the numbers as the file prints them.

Tolerance

Gets or sets the tolerance that says which entities have no shape to them and which four corners of a 3DFACE lie in one plane; Default unless set.