|
我NewFrom一个新的Part,把它AddProduct到Product中,空间中已显示模型,结构树上不显示,右键点击打开子树,能显示我插入的part。
CATIModelEvents *piModelEventNewFeat = NULL;
rc = spObjectProduct->QueryInterface (IID_CATIModelEvents, (void**)&piModelEventNewFeat);
if (SUCCEEDED(rc))
{
CATBaseUnknown * iObject=NULL;
CATBaseUnknown * iParent=NULL;
spObjectProduct->QueryInterface (IID_CATBaseUnknown, (void**)&iObject);
spRootPro->QueryInterface (IID_CATBaseUnknown, (void**)&iParent);
CATCreate notif (iObject, iParent);
piModelEventNewFeat->Dispatch(notif);
iObject->Release();
iObject=NULL;
iParent->Release();
iParent=NULL;
piModelEventNewFeat->Release();
piModelEventNewFeat=NULL;
}
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|