iCAx开思工具箱
标题:
急问:实现抽面()CATIGSMExtractSolide之前的选面问题
[打印本页]
作者:
meiping218301
时间:
2009-6-13 10:42
标题:
急问:实现抽面()CATIGSMExtractSolide之前的选面问题
_SolutionFound = new CATFeatureImportAgent( "SelectSolutionAgent" );
_SolutionFound -> SetOrderedElementType("CATIMfBiDimResult");
_SolutionFound -> AddElementType(IID_CATSurface);
......
CATPathElement * pPath = (CATPathElement*) (*_pHSO)[i] ;
if (pPath==NULL)continue;
CATBaseUnknown * Solution=NULL;
Solution = pPath -> CurrentElement();
if (NULL == Solution)continue;
_listObj.Append(Solution); //_listObj为CATListValCATBaseUnknown_var;
......
for(int i=1;i<=_listObj.Size();i++)
{
CATISpecObject_var spSurface=NULL_var;
spSurface=_listObj[i];
if(spSurface==NULL_var) continue;
==============
如果选的是多个面,只有第一个可以获得spSurface;
其他均为空,有没有人知道我的问题在哪里?
多谢多谢
欢迎光临 iCAx开思工具箱 (https://t.icax.org/)
Powered by Discuz! X3.3