iCAx开思网

标题: 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
cupcake 发表于 2005-5-29 22:18
谢谢陈兄了
:)

您好,我这样做了以后,是能够隐藏特征了,但是我只要一把特征树上的“-”号点下,收缩特征树,然后点“+”号再展开,就发现特征树上原来隐藏的特征又显示了,请问这是怎么回事?




欢迎光临 iCAx开思网 (https://www.icax.org/) Powered by Discuz! X3.3