ODA IFC SDK Developer's Guide > Get Started with IFC SDK > Usage of IFC SDK Sample Applications > ExIfcReadFile Sample Application
Reading an .ifc File Sample Application

Summary

ODA Product: IFC SDK
Sample Name: ExIfcReadFile
Categories: C++ / Beginner / Reading IFC Files / Linux, macOS, Windows
Source Code Location: Ifc/Examples/ExIfcReadFile

Description

The ExIfcReadFile sample application reads a specified .ifc file and fills a newly created database with its contents.

Run Sample Application

To run the OdIfcReadFile 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: <IFC_DIR>\exe\<version>
    • For Non-Windows platforms: <IFC_DIR>/bin/<version>

    <IFC_DIR> is a directory where you unpacked the IFC SDK archive.

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

  2. Run the sample with appropriate parameters:
    
                OdIfcReadFile <filename>
              
    filename A full path to an .ifc file name to be read.

This picture shows the application output when the command is not correct (a) and the resulting output after the application correctly finishes (b).

See Also

Usage of IFC SDK Sample Applications
Copyright © 2002 – 2020. Open Design Alliance. All rights reserved.