Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
HI All, I am writing Creo Api for hiding part in c++ manage.
Following is code
int id1;
ProMdlType modelType;
ProMdl proModel;
proModel = *mProSolid;
mStatus = ProMdlIdGet(proModel, &id1);
ProMdlTypeGet(proModel,&modelType);
mStatus = ProModelitemInit (proModel, id1, PRO_PART , &ref_item);
mStatus = ProModelitemHide(&ref_item)
everything work fine till ProModelitemHide function call. After this i got error PRO_TK_INVALID_TYPE means the item is not permitted to be hidden.
So how to get this permission and hide this part ?
where i am wrong ?
suggest me if any other way to do so.
Thanks in adavance
You should do it this way:
- get component feature (!) - that's the component in Pro/E
- cast the compoent feature to a modelitem:
-