To export an .rvt/.rfa file to JSON format, use the TB_JsonExport
module.
You can export:
ListParam
for all objects in the model.
The TB_JsonExport
module is used in the BmJsonExportEx
sample application.
This is a console application that demonstrates the export capabilities with the following startup parameters:
Input file
— An input .rfa/.rvt file (required).
Output file
— An output .Json file (optional).
Element handle
— OdDbHandle of an OdBmElement for export (optional). Flag
—
One of the following (required):
-p
for exporting properties.-h
for exporting the object hierarchy.Must be the last argument.
The export example also works within the OdaBimApp
sample application.
To export parameters and properties:
To export parameters for one specific object:
You can also select one of the drawn objects in the viewer:
The result of exporting the parameters is a .Json file with this structure:
All elements of an .rvt file model have the following hierarchy of elements:
To export the hierarchy of objects:
The picture below shows the result of hierarchy export:
Copyright © 2002 – 2022. Open Design Alliance. All rights reserved.
|