ODA IFC SDK Developer's Guide > Get Started with IFC SDK > IFC SDK Sample Applications > ExIfcWriteFile Sample Application
Copiying an .ifc File Sample Application

Summary

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

Description

Reads a specified .ifc file, fills a new database with its content, and copies the input file to another .ifc file. After copying, the application compares the contents of the original and copied .ifc files.

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:
    
                ExIfcWriteFile <file_read_from> <file_write_to>
              
    file_read_from A full path to the input .ifc file to read data from.
    file_write_to A full path to the output .ifc file to write data to.

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

IFC SDK Sample Applications

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