ODA Product: | Drawings SDK |
Sample Name: | OdWriteEx |
Categories: | C++ / Beginner Developer / Working with .dwg files / Android, iOS, macOS, Linux, Windows |
Location: | <INSTALL_DIR>/Drawings/Examples/OdWriteEx |
OdWriteEx creates a new drawing, populates it with various entities, and saves to a file.
It illustrates:
To run the OdWriteEx 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.
OdWriteEx <filename> [<OutVer>] [<OutType>] [-DO] [-NoWait] [UseUnloadPaging|UseFilePaging]
filename
|
A a newly created drawing file's full path. Must be a name of the saved drawing file with an extension that is equal to OutType or .dwg if OutType is not specified. |
OutVer
|
Version of the created drawing file.
Can be one of the following:
|
OutType
|
A newly created drawing file's type.
Can be one of the following:
|
-DO
|
Disables progress meter output. |
-NoWait
|
Disables pressing ENTER key prompt after the execution. |
UseUnloadPaging|UseFilePaging
|
Set paging type. To use the [UseUnloadPaging | UseFilePaging] parameter, OutVer and OutType must be specified. |
If the application executed properly, you will see the database populating progress and the saving to the output file process. In case you get the "usage" message, check the parameters. An error message indicates problems with the source file.
Copyright © 2002 – 2022. Open Design Alliance. All rights reserved.
|