Category Curve and surface collection, Object ProSrfcollection

Function ProSrfcollectionRegenerate


Description
Generate the selection based on the instructions set in the surface collection.

Note: This function will not be able to extract geometry, if some or all of the resulting geometry is inactive due to material removal features occuring in the model. In order to extract the reference geometry for such a collection, use ProFeatureInsertModeActivate() to roll back the model before the material remove feature.

Replacement in Object TOOLKIT: wfcWModel::GenerateSelectionsFromCollection
Synopsis
#include <ProSrfcollection.h>
ProErrorProSrfcollectionRegenerate(
ProCollection collection
/* (In)
The surface collection.
*/
ProSelection** r_result_sellist
/* (Out)
ProArray of selections allocated by the function. Use ProSelectionarrayFree() to free the memory.
*/
int* r_result_sel_num
/* (Out)
Number of selections made.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully generated the collection.
PRO_TK_OUT_OF_MEMORYThere was a memory error.
PRO_TK_BAD_INPUTSThe input argument is invalid.
PRO_TK_GENERAL_ERRORThere was a general error.
PRO_TK_MULTIBODY_UNSUPPORTEDinput surface collection is not supported in multi-body models.

Manual References:

  1. User Interface: Curve and Surface Collection: Creation and Modification of Surface Collections
  2. User Interface: Curve and Surface Collection: Access of Collection Object from Feature Element Trees
  3. Migrating to the Multibody Environment: Update to Values of Enumerated Data Types

Sample Code References:

  1. pt_userguide ( UgGeomSurfArea.c )