Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
Digital Signature Sample

Summary

ODA Product: Drawings SDK
Sample Name: OdSignEx
Categories: C++ / Advanced Developer / Working with .dwg files / macOS, Linux, Windows
Location: <INSTALL_DIR>/Drawings/Examples/win/OdSignEx

Description

OdSignEx is a sample CLI application that demonstrates the digital security features of ODA Drawings SDK for protecting .dwg files. It illustrates:
  • Signing a .dwg file with a digital security certificate.
  • Validating the signature of a .dwg file.

The OdSignEx sample application works correctly only if you have a Digital Certificate (Digital ID) properly installed on your OS.

A root certificate (CA) should be installed and set as trusted.

To learn more about working with digital signatures, refer to Working with Digital Signatures in a .dwg File.

Run Sample Application

To run the OdSignEx 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:
    OdSignEx <filepath>
filepath Full path to .dwg file.

If the application executed properly, you will see the prompt for selection of the required operation. 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

Digital Signature Sample for Windows

Copyright © 2002 – 2022. Open Design Alliance. All rights reserved.