Class ExportReport
- Namespace
- RvtIO
- Assembly
- RvtIO.dll
The machine-readable report of one export run (docs/export-report.md). Serialize with RvtIO.ExportReport.ToJson.
public sealed class ExportReportInheritance
Inherited Members
Fields
SchemaName
The name and version of the report format.
public const string SchemaName = "rvtio-report/1"Field Value
Properties
Elements
The element table against the parsed elements; absent when the file could not be read.
public ExportReport.ReportElements? Elements { get; set; }Property Value
Error
Why the file could not be read; only when RvtIO.ExportReport.Status is failed.
public ExportReport.ReportError? Error { get; set; }Property Value
ExitCode
The exit code of the process (see RvtIO.RvtExitCodes).
public int ExitCode { get; set; }Property Value
Export
What the export wrote and left out; absent when nothing was exported.
public ExportReport.ReportExport? Export { get; set; }Property Value
Input
The input file.
public ExportReport.ReportInput Input { get; set; }Property Value
Issues
Other findings that make the read partial.
public List<ExportReport.ReportIssue> Issues { get; set; }Property Value
Limits
The options that bear on the limits and the limits that cut a stream.
public ExportReport.ReportLimits Limits { get; set; }Property Value
Schema
Always RvtIO.ExportReport.SchemaName.
public string Schema { get; set; }Property Value
Status
complete, partial (a limit cut a stream, or a member of a stream did not decode) or failed.
public string Status { get; set; }Property Value
Streams
The partition streams.
public List<ExportReport.ReportStream> Streams { get; set; }Property Value
Methods
Failed(string, long, string, string, int, RvtReadDiagnostics?, bool, bool, string?)
The report of a file that could not be read.
public static ExportReport Failed(string file, long bytes, string kind, string message, int exitCode, RvtReadDiagnostics? diagnostics, bool raised, bool partialAllowed, string? detail = null)Parameters
filestringbyteslongkindstringmessagestringexitCodeintdiagnosticsRvtReadDiagnostics?raisedboolpartialAllowedbooldetailstring?
Returns
Failed(string, long, string, string, int, RvtReadDiagnostics?, bool, bool, string?, bool)
The report of a file that could not be read.
public static ExportReport Failed(string file, long bytes, string kind, string message, int exitCode, RvtReadDiagnostics? diagnostics, bool raised, bool partialAllowed, string? detail, bool strict)Parameters
filestringbyteslongkindstringmessagestringexitCodeintdiagnosticsRvtReadDiagnostics?raisedboolpartialAllowedbooldetailstring?strictbool
Returns
ForRead(string, long, RvtReadDiagnostics, bool, bool, IReadOnlyCollection<uint>, RevitFileInfo)
The report of a finished read. elementIds are the rows of the element table.
public static ExportReport ForRead(string file, long bytes, RvtReadDiagnostics diagnostics, bool raised, bool partialAllowed, IReadOnlyCollection<uint> elementIds, RevitFileInfo info)Parameters
filestringbyteslongdiagnosticsRvtReadDiagnosticsraisedboolpartialAllowedboolelementIdsIReadOnlyCollection<uint>infoRevitFileInfo
Returns
ForRead(string, long, RvtReadDiagnostics, bool, bool, IReadOnlyCollection<uint>, RevitFileInfo, bool)
The report of a finished read. elementIds are the rows of the element table.
public static ExportReport ForRead(string file, long bytes, RvtReadDiagnostics diagnostics, bool raised, bool partialAllowed, IReadOnlyCollection<uint> elementIds, RevitFileInfo info, bool strict)Parameters
filestringbyteslongdiagnosticsRvtReadDiagnosticsraisedboolpartialAllowedboolelementIdsIReadOnlyCollection<uint>infoRevitFileInfostrictbool
Returns
SetExport(string, int, SkipLog)
Adds the export part. skipped holds the elements the export left out.
public void SetExport(string format, int exported, SkipLog skipped)Parameters
ToJson()
The report as indented UTF-8 JSON text.
public string ToJson()