Drawings SDK Developer Guide > Getting Started with Drawings SDK > Using Sample Applications >
Traversing Curves in a Drawing File

Summary

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

Description

OdBrEx is an application used for the B-Rep traversal API (OdBr*), which can be used to traverse the curve and surface information contained in ACIS entities.

Run Sample Application

To run the OdBrEx 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:
    OdBrEx <filename>
filename Full path to a .dwg file.

If the application executed properly, you will see the file loading progress and a list of iterated entities found in the file. If any ACIS entities are found you will be prompted to choose whether to process a certain ACIS entity. Follow the on-screen instructions to traverse information contained in ACIS entities. In case you get the "usage" message, check the parameters. An error message indicates problems with the source file.

OdBrEx <filename>

Parameters

filename Full path to the file from which the curve and surface information should be dumped.

See also:

Using the Sample Code

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