Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
Importing a .dwf File to a .dwg/.dxf File

Summary

ODA Product: Drawings SDK
Sample Name: OdDwfImportEx
Categories: C++ / Working with .dwg files / Android, iOS, macOS, Linux, Windows
Location: <INSTALL_DIR>/Drawing/Examples/OdDwfImportEx

Description

OdDwfImportEx is a console application used for reading a .dwf file and saving it to a .dwg or .dxf file. It illustrates the usage of Drawing/Imports/DwfImport functionality.

Run Sample Application

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

  1. Open the terminal and go to the directory where the sample binary file is built:
    • For Windows: <INSTALL_DIR>\exe\<PLATFORM_NAME>\
    • For Non-Windows OS: <INSTALL_DIR>/bin/<PLATFORM_NAME>/
    <INSTALL_DIR> is a directory where you unpacked the Drawings SDK archive.
    To determine your <PLATFORM_NAME> parameter, please see the ODA Platform Naming Conventions section in the Downloading Drawings SDK topic.
  2. Run the sample with appropriate arguments:
    OdDwfImportEx <source file> <target file>
source file A full path to a .dwf file to read data from.
target file A full path to a .dwg or .dxf file to write data to. Please, note that the extension of the target file should also be specified.

If the application executed properly, you will see the progress of the source file loading, conversion of the database and saving it to the target file. In case you get the "usage" message, check the parameters. An error message indicates problems with the source file.

See also:

Using the Sample Code

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