Class CadRecovery
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
What RECOVER, AUDIT and the window's opening of a damaged file share: the recovered drawing as a document of no file of its own, and the lines that tell a report on the command line.
public static class CadRecovery
- Inheritance
-
CadRecovery
- Inherited Members
Fields
- Shown
How many repairs the command line shows of a report; the rest are in the log.
Methods
- Lines(DxfRepairReport)
The lines that tell a report on the command line, as AutoCAD's audit ends: its summary first, then the first Shown repairs, then how many more the log holds ("12 more in the log.").
- NothingRecovered(DxfRepairReport)
Gets whether nothing could be recovered of a file: not one record of a DXF was found in it, or what was repaired could not be read at all (Unreadable, not fixed), so that the drawing is empty and is not worth opening: a letter saved as plan.dxf.
- Open(string, out DxfRepairReport)
Opens a damaged DXF file as Recover(string, out DxfRepairReport) recovers it, as a document named after the file with " (recovered)" behind it and no file of its own, so that saving it asks where and never writes over the damaged file:
plan.dxf (recovered). A DWG, known by its first bytes, is read by the DWG reader (Open(string)) and audited with its errors fixed (Audit(bool)), the report being the audit's: a DWG that cannot be read at all is refused as the DWG reader refuses it.