CATIA caa 隐藏元素
作者:
锦囊喵 | 来源:发表于
2020-01-19 11:14 被阅读0次
原文链接
/**
* 隐藏元素
* @param ipListElemObj
* 元素列表
*/
void HideElements(CATLISTV(CATISpecObject_var) ipListElemObj)
{
for(int i=1;i<=ipListElemObj.Size();i++){
CATIVisProperties* pPropOnElem = NULL;
HRESULT rc = ipListElemObj[i]->QueryInterface(IID_CATIVisProperties,
(void**)&pPropOnElem);
if(NULL != pPropOnElem){
CATVisPropertiesValues PropValue;
CATVisPropertyType PropTypeOnPtObj = CATVPShow;
CATVisGeomType GeomTypeOnPtObj = CATVPGlobalType;
PropValue.SetShowAttr(CATNoShowAttr);
rc = pPropOnElem->SetPropertiesAtt(PropValue,
PropTypeOnPtObj,
GeomTypeOnPtObj);
pPropOnElem->Release();
pPropOnElem = NULL;
}
}
}
本文标题:CATIA caa 隐藏元素
本文链接:https://www.haomeiwen.com/subject/iylrzctx.html
网友评论