Category Sketches and sections, Object ProSection

Function ProSectionConstraintCreate


Description
Create the constraints with the entities in the specified section to each other.

This function should only be called if Intent Manager mode is used for the section (see ProSectionIntentManagerModeSet()

Synopsis
#include <ProSection.h>
ProErrorProSectionConstraintCreate(
ProSection handle
/* (In)
The section handle
*/
ProSelection* ref_ent
/* (In)
An array of selection of entities
*/
int num_ents
/* (In)
Number of selection entities.
*/
ProConstraintType constr_type
/* (In)
The constraint type.
*/
int* constr_id
/* (Out)
Created constraint id
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully creates the constraints.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
PRO_TK_BAD_CONTEXTIntent Manager mode is not used for the section
PRO_TK_E_FOUNDThe constraint exists.
PRO_TK_INVALID_TYPEConstraint creation is not possible with the give input.

Manual References:

  1. Element Trees: Sections: Section Constraints
  2. Element Trees: Sections: Section Constraints

Sample Code References:

  1. pt_examples ( UtilSect.c )
  2. pt_userguide ( Ug3DSectSplineDim.c )
  3. pt_userguide ( Ug3DSectSplineDim.c )