Part之事件,Prototype之原型

 

/////////////////////////////////////////////////////////////////////////////////////////

Represents a component in a NXOpen::Assemblies::ComponentAssembly .

Note that a Component is an occurrence whose prototype is a NXOpen::Part . See NXOpen::NXObject::Prototype .

注:组件只是NXOpen::Part的一个事件。Part才是原型。见:NXOpen::NXObject::Prototype 

///////////////////////////////////////////////////////////////////////////////////////// 

/////////////////////////////////////////////////////////////////////////////////////////

virtual NXOpen::INXObject* NXOpen::NXObject::Prototype()

Returns the prototype of this object if it is an occurrence. 

返回对象原型,如果此对象是一个事件。

所以有:Part* part1 = dynamic_cast<Part*>(component->Prototype()); //component强制转换为part

 

posted @ 2021-08-08 11:25  光量子  阅读(82)  评论(0编辑  收藏  举报