注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

信息 灵感 创新

I? =Information,Inspiration,Innovation

 
 
 

日志

 
 
关于我

we are 5. Mathematics, Computation, Programming, Engineering, and Making fun of life.

网易考拉推荐

Open C++ Programmer's Guide(1)  

2014-06-18 12:31:00|  分类: UG NX |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

Introduction

Open C++ is an object-oriented programming interface to NX, allowing access to NX objects and functionality via a C++ class hierarchy. Using methods in this class hierarchy you can create, read, and modify NX objects as well as control the NX application itself.

Open C++是一个针对NX的面向对象编程接口,它通过C++的类层次结构提供访问NX对象和功能,使用这一类层次结构你能够创建、读取和修改NX对象,以及控制NX程序。

Some of the benefits of Open C++ are:

  • Open C++ uses standard C++ syntax, which often results in more concise and readable application code.Open C++ objects are referenced via pointers to C++ objects rather than tags, which is a more natural and expressive programming style.
  • Open C++ reports errors via the C++ Exception mechanism, which allows you to localize your error handling in a few places and avoids having to explicitly check error codes returned from individual function calls.

Open C++ is strongly typed, which means that any attempt to invoke a function on an inappropriate NX object is caught by the C++ compiler rather than resulting in a run-time error.

Open C++是一种强类型语言,这意味着任何试图对不合适的NX对象去调用函数都会被C++编译器所捕获,而不是在运行时产生错误。

  • Open C++ takes advantage of C++ encapsulation to make it easier for you to identify the set of functions relevant to a particular type of NX object.

Open C++利用C++的封装优点,能让你很容易地识别出与特定NX对象类型相关的函数集。

  • Open C++ provides a framework for defining new classes of objects using standard C++ inheritance, enabling your derived class to override virtual methods that allow the user to define what NX operations such as Update mean for the new object.
  • Open C++ can be used in combination with traditional Open C function calls, allowing objects created in Open C++ to be accessed in Open C, and vice versa.
  • Open C++ provides context-managed creation of NX objects by specifying the owning part in every create method.
  • Open C++ unifies the evaluation and inquiry of curves and edges, allowing you to write code without special case branches for wireframe curves and solid edges.
  • Open C++ provides ease of editing objects without the inconvenience of inquiring if the object is a prototype or an occurrence.
  • Open C++ sits on top of the Open C library and provides a relatively thin C++ interface layer on top of traditional Open C. Open C++ actually consists of two libraries: the openpp library provides access to NX objects and functionality, while the vmathpp library contains a vector math package that provides general purpose mathematical operations.

Open C++ applications can be written as either internal or external applications. An internal application is a shared library on UNIX or a Dynamic Linked Library on Windows NT and can be executed during an interactive NX session. An external application is an executable file that executes stand-alone, outside an NX session.

Detailed documentation for every Open C++ class and method is provided via a set of HTML pages.

  评论这张
 
阅读(523)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2016