Table of Contents

Class CompactJsonExporter

Namespace
RvtIO.Compact
Assembly
RvtIO.dll

Exports a RvtIO.Model.RevitFileInfo as the compact JSON properties collection: one node per ElemTable row in ascending ElementId (RvtIO.Compact.CompactUniverse), identity from RvtIO.Compact.CompactNodeBuilder, properties from an RvtIO.Compact.ICompactPropertySource (none by default), written by RvtIO.Compact.CompactJsonWriter one node at a time.

public static class CompactJsonExporter

Inheritance

Inherited Members

Methods

Export(string, string, RvtReaderOptions?, CompactJsonExportOptions?)

Reads a Revit file and writes its compact JSON properties collection to outputPath.

public static void Export(string rvtPath, string outputPath, RvtReaderOptions? readerOptions = null, CompactJsonExportOptions? options = null)

Parameters

rvtPath string

The .rvt or .rfa file to read.

outputPath string

The JSON file to create or overwrite.

readerOptions RvtReaderOptions?

Options of the read; null uses the defaults. Its DiagnosticOutput also receives the export report.

options CompactJsonExportOptions?

Options of the JSON output; null uses the defaults.