Table of Contents

Enum DxfRepairKind

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

What was wrong with a drawing, as Recover(string, out DxfRepairReport) and Audit(bool) name it in a DxfRepair, in the order a file is read: first the bytes and lines, then the sections, the records, the handles and the tables.

public enum DxfRepairKind

Fields

LineEnds = 0

Lines ended by a carriage return alone, as an old Macintosh writes them: read as lines, written with line feeds.

Encoding = 1

Text in the wrong code page: a file of R2007 or later whose bytes are not UTF-8, read in the page its header names and written as UTF-8; or a header naming a page a DXF cannot be in, named ANSI_1252 instead.

BadGroupCode = 2

A line where a group code should stand that is not a whole number from 0 to 1071: left out, the next line read as a code.

MissingValue = 3

A group code on the last line of the file with no value after it: left out.

Truncated = 4

A file cut short, with no EOF: the section it ends in closed and the EOF written.

SectionStructure = 5

A section not closed before the next opens, an ENDSEC that closes nothing, a section with no name, or records outside every section: closed, left out, named from what it holds, or moved into ENTITIES where they are entities.

SectionOrder = 6

Sections out of AutoCAD's order (HEADER, CLASSES, TABLES, BLOCKS, ENTITIES, OBJECTS): put in that order.

MissingSection = 7

A section missing: ENTITIES added empty; a HEADER naming R2000 added to a file whose records are of R13 or later; TABLES, BLOCKS or OBJECTS of such a file reported, not made.

MissingEndBlk = 8

A BLOCK with no ENDBLK before the next BLOCK or the end of the section: its ENDBLK written.

MissingSeqEnd = 9

A POLYLINE, or an INSERT with attributes, with no SEQEND after its vertices or attributes: its SEQEND written.

BadNumber = 10

A group of a number whose value is no number: the number it begins with, or nought.

NonFiniteNumber = 11

A number that is not finite (NaN, an infinity): the entity left out, nought elsewhere.

WrongVertexCount = 12

A LWPOLYLINE whose count of vertices (group 90) is not the number of its vertices: set to that number.

WrongLoopCount = 13

A HATCH whose count of boundary paths (group 91) is not the number of its paths: set to that number.

MissingHandle = 14

A record of a file of R13 or later with no handle, or one that is not hexadecimal: given a new one.

DuplicateHandle = 15

A handle two records have: the later given a new one, the records it owns pointed at it.

HandseedTooLow = 16

A $HANDSEED not above every handle, or missing: set above them.

BadOwner = 17

An owner (group 330) that names no record: the entity's block, the vertex's polyline or the entry's table named instead.

MissingLayer = 18

A layer an entity is on that the layer table does not list: added with the defaults.

MissingLinetype = 19

A linetype an entity names that the linetype table does not list: added, drawn solid.

MissingTextStyle = 20

A text style a text names that the style table does not list: added with the defaults.

MissingDimStyle = 21

A dimension style a dimension, a leader or a tolerance names that the table does not list: added with the defaults.

MissingBlock = 22

An INSERT of a block the drawing does not define: kept, drawing nothing.

UnknownEntity = 23

An entity of a type neither AutoCAD's own nor named in the CLASSES section: kept as it is.

BrokenDictionaryEntry = 24

An entry of a DICTIONARY that is broken, a name with no pointer after it, a pointer with no name before it, or a pointer that is not a handle: left out. A pointer to an object the file does not hold is not broken: AutoCAD writes those of objects it leaves out of a DXF.

Unreadable = 25

What was left after the repairs still could not be read: only its entities kept (fixed), or an empty drawing (not fixed); or nothing of a DXF was found in the file, not one record (not fixed), the drawing empty.