回答(1)
wustguangh 19级 2014-11-03 21:28:52
可以通过CATIxPDMItem接口的GeneratePreview得到CATIA文档的预览图,下面是一段参考代码:
//保存产品预览 CATILinkableObject_var spLinkableObj = _spProduct->GetReferenceProduct(); CATIxPDMItem_var spPDMItem(spLinkableObj->GetDocument()); if(NULL_var != spPDMItem){ CATUnicodeString strExt = "jpg"; CATUnicodeString strImgPath; spPDMItem->GeneratePreview(strExt,strImgPath); cout<<"Image File Name:"<<strName<<endl; }