Category Curve and surface collection, Object ProSurfaces

Function ProSurfacesCollect


Description
Asks the user to interactively create a collection of surfaces.
Replacement in Object TOOLKIT: wfcWSolid::CollectSurfaces
Synopsis
#include <ProCollect.h>
ProErrorProSurfacesCollect(
ProCollectioninstrType* types
/* (In)
Array defining the instruction types the Creo Parametric user will be allowed to use.
*/
int n_types
/* (In)
The size of the types array
*/
ProCollFilter filter_func
/* (In)
Filter function called before each selection is made. Can be NULL.
*/
ProAppData app_data
/* (In)
Application data passed to the filter function. Can be NULL.
*/
ProCollection collection
/* (In)
The resulting collection object, this pointer is allocated by calling ProCollectionAlloc and NULL can also be passed. Note:If this collection already contains selected items, the dialog will display those contents to be edited interactively in the dialog. The ProCollection will point to the modified contents once the dialog OK button is chosen.
*/
ProSelection** sel_list
/* (Out)
Pointer to a ProArray (allocated by the function) of ProSelection objects describing the surfaces resulting from the collection. Free this using ProSelectionarrayFree().
*/
int* n_sel
/* (Out)
Number of entries in sel_list.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_GENERAL_ERRORThe function failed.

Manual References:

  1. User Interface: Curve and Surface Collection: Interactive Collection
  2. User Interface: Curve and Surface Collection: Contents of Surface Collection

Sample Code References:

  1. pt_userguide ( UgFlexModelCreate.c )
  2. pt_userguide ( UgIntcollectionDraftCreate.c )
  3. pt_userguide ( UgGeomSurfArea.c )