首先可以通过E HUB的方式获取到结构树上实例的当前指针
CATBaseUnknown_var &iObject;
rc=SyncBaseAsmIIAttrToOther(iObject);
下边对同步实力属性函数SyncBaseAsmIIAttrToOther进行解析;
HRESULT SyncBaseAsmIIAttrToOther(const CATBaseUnknown_var &iObject)
{
ENOVIExpandable_var spExpand=iObject; 将指针指向ENOVIExpandable接口
CATLISTV(CATBaseUnknown_var) listOfChildren;
rc = spExpand->get_Tree(1, listOfChildren); 通过ENOVIExpandable接口获取实例子件
ENOVIABOPartInstance_var spAsmPartInst=iObject; 将指针指向ENOVIABOPartInstance实例接口
spAsmPartInst->get_ParentPartReference(pAsmRef); 获取