Category Features, Object ProFeature

Function ProFeatureReorder


DEPRECATED: Since Wildfire 5.0
SUPERSEDED BY: ProFeatureWithoptionsReorder
Description
Reorders the supplied set of features such that the location of the first feature will be the new_feat_num after the reorder.

NOTE:

This function is deprecated. Use ProFeatureWithoptionsReorder() with flags equal to PRO_REGEN_NO_FLAGS for equivalent behavior.

Replacement in Object TOOLKIT: pfcSolid::ExecuteFeatureOps
Synopsis
#include <ProFeature.h>
ProErrorProFeatureReorder(
ProSolid solid
/* (In)
The part or assembly that owns the features to be reordered.
*/
int* feat_ids
/* (In)
The array of feature identifiers that represents a contiguous set of features in the model tree. If reordering a group, all the features in the group (including the Group Header feature) must be included in this array.
*/
int n_feats
/* (In)
The size of the feat_ids array.
*/
int new_feat_num
/* (In)
The intended location of the first feature in the specified set, upon reorder.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully reordered the features.
PRO_TK_BAD_INPUTSThe specified feature is invalid, or the location to which the reordering is requested is not valid.

Manual References:

  1. Core: Features: Manipulating Features
  2. Core: Features: Manipulating Features
  3. Core: Features: Manipulating Features based on Regeneration Flags

Sample Code References:

  1. pt_examples ( TestFeats.c )
  2. pt_geardesign ( GearDesign.c )