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 CompactJsonExporterInheritance
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
rvtPathstring-
The .rvt or .rfa file to read.
outputPathstring-
The JSON file to create or overwrite.
readerOptionsRvtReaderOptions?-
Options of the read; null uses the defaults. Its DiagnosticOutput also receives the export report.
optionsCompactJsonExportOptions?-
Options of the JSON output; null uses the defaults.