标题: CAA中怎么隐藏和显示一个特征? [打印本页] 作者: cupcake 时间: 2005-5-29 15:28 标题: CAA中怎么隐藏和显示一个特征? 如题,请各位指点。如图
作者: cms_nuaa 时间: 2005-5-29 18:26
from the feature (CATISpecObject) get a CATIVisProperties interface, and call its method "GetPropertiesAtt" with the parameter "CATVPShow". you get a CATVisPropertiesValues object. call its method "SetShowAttr" with the attribute "CATNoShowAttr".
Then,to give the result,do this:
CATIModelEvents *pME = NULL;
HRESULT rc = pObj->QueryInterface( IID_CATIModelEvents,(void **) [$pME)]
if (SUCCEEDED(rc))
{
CATModifyVisProperties notif(pObj, CATPathElement(pObj), CATVPGlobalType,CATVPShow,prop);
pME->Dispatch(notif);
pME->Release();
pME= NULL ;
}
where pObj is your feature and
prop is the CATVisPropertiesValues used for the CATIVisProperties 作者: cupcake 时间: 2005-5-29 22:18
谢谢陈兄了
:)作者: cms_nuaa 时间: 2005-5-29 22:30
晕!!!!!!!!!!!!!!!!!!!!作者: cupcake 时间: 2005-5-29 22:40
:)
谢谢了作者: 水人百分百 时间: 2012-2-22 21:05