cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

ProSrfcollection

Highlighted
FV
Moonstone

ProSrfcollection

Hi all,

Any insight would be appreciated.
Here is a snippet of ProSurfCollect related code:


int SrfcollTest0( )
{
ProError err;
ProCollection collection;
ProSelection * coll_sels;
int coll_sels_size;


ProCollectioninstrType coll_filters[] = { PRO_SURFCOLL_ALL_SOLID_SRFS };

err = ProSrfcollectionAlloc ( &collection );

if( err != PRO_TK_NO_ERROR)
return( PRO_TK_GENERAL_ERROR);


err = ProSurfacesCollect ( coll_filters,
sizeof( coll_filters)/sizeof(coll_filters[0]),
( ProCollFilter ) NULL,
( ProAppData ) NULL,
collection,
&coll_sels,
&coll_sels_size );


if( err != PRO_TK_NO_ERROR)
return( PRO_TK_GENERAL_ERROR);



err = ProSelbufferCollectionAdd( collection);
if( err != PRO_TK_NO_ERROR)
return( PRO_TK_GENERAL_ERROR);



return( PRO_TK_NO_ERROR);


}


1 REPLY 1

RE: ProSrfcollection

Continue from prev. post

The problem : selection buffer is empty.

TIA.

Feliks.