Category Curve and surface collection, Object ProSrfcollinstr

Function ProSrfcollinstrAlloc


Description
Allocates a surface collection instruction.

Note: For excludeinstructions (those with PRO_B_FALSE include input argument), only one-by-one (that is,those with PRO_SURFCOLL_SINGLE_SURF type input argument) are currently supported.

Synopsis
#include <ProSrfcollection.h>
ProErrorProSrfcollinstrAlloc(
ProSrfcollinstrType type
/* (In)
The instruction type.
*/
ProBoolean include
/* (In)
PRO_B_TRUE to add surfaces generated by this instruction to the surface set, PRO_B_FALSE to exclude surfaces generated by this instruction from the set.
*/
ProSrfcollinstr* r_instr
/* (Out)
Pointer to surface collection instruction
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more arguments was invalid.
PRO_TK_NOT_IMPLEMENTEDThis case is not supported.
PRO_TK_OUT_OF_MEMORYMemory allocation failure.

Manual References:

  1. User Interface: Curve and Surface Collection: Creation and Modification of Surface Collections
  2. User Interface: Curve and Surface Collection: Creation and Modification of Surface Collections

Sample Code References:

  1. pt_af_examples ( PTAEToDraft.c )
  2. pt_userguide ( UgDraftTemplate.c )
  3. pt_userguide ( UgRemoveSurfCreate.c )
  4. pt_userguide ( UgSimpleDraftCreate.c )
  5. pt_userguide ( UgMfgMillSeqCreate.c )