Close

Relief for ODA Team in Ukraine

Learn more
ODA BimRv SDK
Export to a JSON File Example

Summary

ODA Product: ODA BimRv SDK
Sample Name: BmJsonExportEx
Categories: C++ / Beginner / Working with .rvt and .rfa files / MacOS, Linux, Windows
Source Code Location: BimRv/Examples/BmJsonExportEx

Description

A Sample Console Application Illustrating reading a .rvt or .rfa file and writing it to a JSON file. Also, there is a .NET wrapper for this example.

Run Sample Application

To run the BmJsonExportEx sample application, please do the following:

  1. Open the terminal window and go to the directory where the sample binary file is allocated:
    • For Windows® platforms: <BIMRV_DIR>\exe\<version>
    • For Non-Windows platforms: <BIMRV_DIR>/bin/<version>

    <BIMRV_DIR> is a directory where you unpacked the BimRv SDK archive.

    To determine your <version> parameter, please see the appropriate section in the Download ODA BimRv SDK topic.

  2. Run the sample with appropriate parameters:
    
                BmJsonExportEx <input file> [<output file>] [<element handle>] [<flag>]
              
    input file A full path to the input .rfa or .rvt file.
    output file A name of the output JSON file.
    element handle A non mandatory parameter that contains a value of the OdDbHandle class of an element represented with the OdBmElement class for export.
    flag Determines whether the application exports properties (if is equal to the "-p" value) or it exports object hierarchy information (if is equal to the "-h" value).

See Also

Use ODA BimRv SDK Sample Applications

Copyright © 2002 – 2022. Open Design Alliance. All rights reserved.