vector<ProGeomitem> Geomitem;
ProSrftype type;
ProError UserGeomitemVisitAct(ProGeomitem* geomitem,ProError status,ProAppData data)
{
ProSurface surface;
ProSrftype surf_type;
status=ProGeomitemToSurface(geomitem,&surface);
status=ProSurfaceTypeGet(surface,&surf_type);
if (type==surf_type)
{
vector<ProGeomitem>* pf=(vector<ProGeomitem>*)data;
pf->push_back(*geomitem);
}
return PRO_TK_NO_ERROR;
}
ProError UserFeatureVisitAct(ProFeature* p_feature,ProError status,ProAppData data)
{
//遍历特征下的几何项
status=ProFeatureGeomitemVisit(p_feature,PRO_TYPE_UNUSED,(ProGeomitemAction)UserGeomitemVisitAct,NULL,&Geomitem);
if (PRO_TK_NO_ERROR!=status)
{
return status;
}
return PRO_TK_NO
ProSrftype type;
ProError UserGeomitemVisitAct(ProGeomitem* geomitem,ProError status,ProAppData data)
{
ProSurface surface;
ProSrftype surf_type;
status=ProGeomitemToSurface(geomitem,&surface);
status=ProSurfaceTypeGet(surface,&surf_type);
if (type==surf_type)
{
vector<ProGeomitem>* pf=(vector<ProGeomitem>*)data;
pf->push_back(*geomitem);
}
return PRO_TK_NO_ERROR;
}
ProError UserFeatureVisitAct(ProFeature* p_feature,ProError status,ProAppData data)
{
//遍历特征下的几何项
status=ProFeatureGeomitemVisit(p_feature,PRO_TYPE_UNUSED,(ProGeomitemAction)UserGeomitemVisitAct,NULL,&Geomitem);
if (PRO_TK_NO_ERROR!=status)
{
return status;
}
return PRO_TK_NO