Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
Dumping 3dSolid Entity Triangles and Texture Coordinates

Summary

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

Description

Dumps triangles and texture coordinates for 3dSolid entities.

Run Sample Application

To run the OdMaterialViewEx 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:
    OdMaterialViewEx <input file> [> <output file>]
input file A full path to a drawing file. The extension of the drawing file should be .dwg, .dxf or .dxb.
output file Optional parameter. A full path to a text file for sending output instead of the console. If the file does not exist, it will be created.

If the application executed properly, you will see the input file loading and parsing progress. If entities that contain materials are found, a dump of these entities will appear. 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.