ODA Product: | Drawings SDK |
Sample Name: | OdWmfExport |
Categories: | C++ / Working with .dwg files / Android, iOS, macOS, Linux, Windows |
Location: | <INSTALL_DIR>/Drawings/Examples/OdWmfExport |
OdWmfExport is a console application used for reading a .dwg or .dxf file and saving it to a .wmf file (Windows only).
To run the OdWmfExport sample application, please do the following:
<INSTALL_DIR>\exe\<PLATFORM_NAME>\
<INSTALL_DIR>/bin/<PLATFORM_NAME>/
<INSTALL_DIR>
is a directory where you unpacked the
Drawings SDK archive.<PLATFORM_NAME>
parameter, please see
the ODA Platform Naming Conventions section in the
Downloading Drawings SDK topic.
OdWmfExport <input file> <output file> <file type> <xSize> <ySize> [<override background>]
input file
|
A full path to a drawing (.dwg or .dxf) file to read data from. |
output file
|
A full path to a Windows meta file write data to. |
file type
|
A type of Windows meta file to create:
|
xSize
|
Horizontal size of the output screen. |
ySize
|
Vertical size of the output screen. |
override background
|
A flag value which determines whether background is overridden:
|
If the application executed properly, you will see the source file loading progress and a message, informing that the database conversion is finished. In case you get the "usage" message, check the parameters. An error message indicates problems with the source file.
Copyright © 2002 – 2020. Open Design Alliance. All rights reserved.
|