Open C API is designed to enable an easy interface between NX and the outside world. The Open C API consists of: a large set of user callable functions/subroutines that access the NX Graphics Terminal, File Manager, and Database. command procedures to link and run user programs. an interactive interface in NX to run those programs. Open C API programs can run in 2 different environments, depending on how the program was linked. The two environments are: External - these Open C API programs are stand alone programs that can run from the operating system, outside of NX, or as a child process spawned from NX. Internal - these Open C API programs can only be run from inside of an NX session. These programs are loaded into main memory along side of NX and access routines within NX. One advantage to this is that the executables are much smaller and link much faster. Once an Internal Open C API Program is loaded into memory, it can stay resident for the remainder of the NX session. If you call this program again, it executes without reloading (provided it was not unloaded). Internal Open C API programs work on the current part and automatically modify the part display. Most Open C API functions/subroutines can be used in either mode. There are only a few, mostly User Interface routines that are only supported in internal mode. The Open C API product is not intended to replace the Open C GRIP (GRaphics Interactive Programming) product, but rather to make it easier to interface to NX from a high-level language such as C or C++. There are many tasks where a high-level language program is more appropriate. The Open C API product is explicitly defined in this manual. It is our intent to insulate the application programmer from changes in future NX software releases. Unfortunately, this is not always possible. Where this is not possible, every effort will be made to support existing routines for at least one release version of NX prior to obsolescence, and forewarn users of routines which will be changed in the future. When upgrading to a new release, programmers are expected to recompile and relink their programs. In addition, the release notes supplied with each release of NX describe changes that are important to Open C programmers. The release notes also describe what versions of the operating system and compiler were used to create the release of Open C API. Since operating systems, linkers, compilers, run-time libraries, etc., are usually updated by the hardware vendors more frequently than NX is released, there may be combinations that do not function correctly with Open C API. Additionally, compiling or linking may require different options other than those documented here. Refer to the Release Notes supplied with each release of NX for specific changes that may be necessary to use Open C API correctly.
- 粉丝: 0
- 资源: 1
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助