Close

Relief for ODA Team in Ukraine

Learn more
ODA BimRv SDK
Convert OdDb entities to DirectShape

Summary

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

Description

Example application that converts OdDb entities that are based on B-Rep entities in .dwg files to DirectShapes in RVT or RFA files. Note that Drawings functionality is required to compile this application.

Run Sample Application

To run the DwgDirectShapeImportEx 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:
    
                DwgDirectShapeImportEx <InputFile> <SourceBimFile> <OutputBimFile> 
              
    InputFile A full path to the input .dwg file.
    SourceBimFile A full path to the existing .rfa or .rvt file to get BimRv database.
    OutputBimFile A full path to the output .rfa or .rvt file.

See Also

Use ODA BimRv SDK Sample Applications

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