Close

Relief for ODA Team in Ukraine

Learn more
ODA Facet Modeler
Build and Run Your Application

Build Your Application

To build your project in Microsoft® Visual Studio®, choose Build > Build FirstApp.

The executable file is placed in the <KERNEL_DIR>\exe\<version> folder. <KERNEL_DIR> is the directory where you unpacked the Kernel archive. To determine your <version> parameter, see the appropriate section in the Download Kernel SDK topic.

Run Your Application

To run your application, go to the directory where the executable file is located and launch FirstApp.exe from the console while providing two arguments — the type of object to create and the location where to store it:

FirstApp.exe <body_type> <filename>
  • <body_type> — Type of the object to create. The following types are available:
    • Cube — Single cube body. Demonstrates usage of Body::box().
    • Pyramid — Single pyramid body. Demonstrates usage of Body::pyramid().
    • SliceBody — Single profile. Demonstrates usage of Body::slice().
  • <filename> — Full path to the output file with an .adb or .fdb extension.

For example, the following command models a cube and creates a Cube.adb file in the directory D:\OpenDesign\files:

FirstApp.exe Cube D:\OpenDesign\files\Cube.adb

Read the Output File

To read the output file that this application creates, use the FMReadEx example included in your solution:

FMReadEx.exe <filename> <type>
  • <filename> — Directory of the input file.
  • <type> — Type of the object in the file. The following types are available:
    • body — If the output of your application is a body (cube, pyramid).
    • profile2d — If the output of your application is a profile (slice).

For example, to read information about a body from D:\OpenDesign\files\Cube.adb, run the following command:

FMReadEx.exe D:\OpenDesign\files\Cube.adb body

See Also

Implement Functions
Activate ODA Software
Create Your First Application
Create and Set Up a Visual Studio Project
FMReadEx Sample Application
Copyright © 2002 – 2022. Open Design Alliance. All rights reserved.