C++ / Beginner Developer / Working with .dwg files / Android, iOS, macOS, Linux, Windows
Location:
<INSTALL_DIR>/Drawings/Examples/OdVectorizeEx
Description
OdVectorizeEx is a simple console application used for dumping geometry of
the active layout to the console. It illustrates:
Creating a custom vectorization device that grabs geometry and dumps it.
Customizing an assert function.
Run Sample Application
To run the OdVectorizeEx sample application, please do the following:
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.
Run the sample with appropriate arguments:
OdVectorizetEx <input file>
input file
A full path to a drawing file.
Please note, that the extension of the drawing file should be .dwg, .dxf or.dxb.
Output is written to the standard output stream (stdout).
You can redirect the output if you need it.
If the application executed properly, you will see the source file loading
progress and a database dump, that includes all information about the entities
and object types located in the file.
In case you get the "usage" message, check the parameters.
An error message indicates problems with the source file.