Method Audit
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
Audit(bool)
Checks the drawing for errors, as AutoCAD's AUDIT does, and fixes those it can where asked; the report says what was found and what was fixed. A sound drawing gives an empty report.
public DxfRepairReport Audit(bool fix)
Parameters
fixboolWhether to fix what can be fixed in the drawing as it stands, as AUDIT's answer Yes.
Returns
- DxfRepairReport
What was found, each fixed or not.
Remarks
Fixed where asked: a layer, linetype, text style or dimension style an entity names that its table lacks is added with the defaults (a linetype drawn solid); a number of an entity's own record that is no number is given the number it begins with, or nought, and the count of a LWPOLYLINE's vertices or a HATCH's boundary paths set to their number; an entity with a number that is not finite is erased; a broken entry of a dictionary (a name with no pointer, a pointer with no name or one that is not a handle) is taken out. A drawing whose line 0 to 100 stands on the layer WALLS, which its layer table does not list, gives one error, and fixed, the layer WALLS of colour 7 and the linetype Continuous.
Found and not fixed here: an INSERT of a block not defined and an entity of a type neither AutoCAD's own nor named in
the CLASSES section, both kept; and what the file itself would need written again, a handle two records have, an
owner that names nothing, a $HANDSEED too low, a number of a vertex or an attribute that is no number, which
Recover(string, out DxfRepairReport) fixes as it reads the saved drawing again.