Recover Method (IApplication)

Recover Method (IApplication) | Send Feedback
See Also

Document[out]
  IDocument or null if drawing is not recovered

FilePath
  Path and file name of drawing to recover

ProcessedEntitiesNumber[out]
  Number of entities that were processed

ErrorsNumber[out]
  Number of errors found

FixedErrorsNumber[out]
  Number of errors fixed

ReportStrArray[out]
  Array of strings of the error messages

Recovers a damaged drawing file.

# Syntax

Visual Basic |
--- | ---
    Function Recover( _
       ByVal FilePath As System.String, _
       ByRef ProcessedEntitiesNumber As System.Integer, _
       ByRef ErrorsNumber As System.Integer, _
       ByRef FixedErrorsNumber As System.Integer, _
       ByRef ReportStrArray As System.Object _
    ) As Document

C# |
--- | ---
    Document Recover(
       System.string FilePath,
       out System.int ProcessedEntitiesNumber,
       out System.int ErrorsNumber,
       out System.int FixedErrorsNumber,
       out System.object ReportStrArray
    )

JavaScript |
--- | ---
    Recover(
       FilePath : String
    ) : {
       ProcessedEntitiesNumber : Number,
       ErrorsNumber : Number,
       FixedErrorsNumber : Number,
       ReportStrArray : Array,
       Document : dsDocument
    }

COM native C++ |
--- | ---
    HRESULT Recover(
       BSTR FilePath,
       LONG* ProcessedEntitiesNumber,
       LONG* ErrorsNumber,
       LONG* FixedErrorsNumber,
       VARIANT* ReportStrArray,
       IDocument** Document
    )

C++ |
--- | ---
    DSRESULT Recover(
       const dsString& FilePath,
       long* ProcessedEntitiesNumber,
       long* ErrorsNumber,
       long* FixedErrorsNumber,
       dsStringArray* ReportStrArray,
       dsDocument** Document
    )

#### Parameters

FilePath
  Path and file name of drawing to recover
ProcessedEntitiesNumber[out]
  Number of entities that were processed
ErrorsNumber[out]
  Number of errors found
FixedErrorsNumber[out]
  Number of errors fixed
ReportStrArray[out]
  Array of strings of the error messages
Document[out] or Return Value
  IDocument or null if drawing is not recovered

# See Also

####

IApplication Interface
IApplication Members

# Availability

DraftSight V1R1.4