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 |