Close

Relief for ODA Team in Ukraine

Learn more
ODA IFC SDK
ExIfcExtractData Sample Application

Summary

ODA Product: IFC SDK
Sample Name: ExIfcExtractData
Source Code Location: Ifc/Examples/ExIfcExtractData

Description

The ExIfcExtractData example is a sample application that creates a file with all data that is contained in the Schema class of the selected schema module. The example uses the C++ Data Access Interface (DAI) for reading the contents of the IFC file.

Run Sample Application

To run the ExIfcExtractData sample application:

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

    <IFC_DIR> is the 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 the appropriate parameters:
    
    ExIfcExtractData <target filename>
              
    target filename The full path to the IFC4x2 file to be created.

The picture above shows the application output after it correctly finishes.

The picture below illustrates an example of the console output when the application runs incorrectly (for example, without specifying input parameters):

The content of the created file is shown below.

See Also

IFC SDK Sample Applications

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