Sites may need to access drawing information to provide it to external systems. The drawing format program API lets you easily obtain or modify drawing information. The API is designed to be used alongside the NX/Open C++ API that was introduced in NX 3 hence it is a C++ based API. Support of the other NX/Open API languages(VB, C#, etc) are not currently planned.
The API is made up of two classes:DphFormat::Format and DphFormat::Block. DphFormat::Format is the main interface to query or modify the drawing format. DphFormat::Block objects are obtained from DphFormat::Format and allow querying or modifying the fields on the block.
Callbacks for Insert Block and Append Entry operations are provided to allow sites to override the default values of the fields. This method should only be used if the default values are coming from an external system such as a database. Otherwise, the Local Settings dialog is where you would override with static default values.
In order to have a callback be called, the callback must be registered with the format program. Use the appropriate function DphFormat::registerInsertBlockCB or DphFormat::registerAppendEntryCB to register the callback. Note that registering a callback replaces any callback registered before.
The Boost C++ library(http://www.boost.org) is needed for compilation of an application that uses the API. The library does not have to be compiled nor installed, but the header files need to be available to the compiler. The API only uses a few template classes from the library to help with the implementation.
1.4.7