Category Sketches and sections, Object ProSection

Function ProSectionAutodim


Description
Adds dimensions to the section as needed to make it fully constrained.

This function shouldn't be called if Intent Manager mode is used for the section (see ProSectionIntentManagerModeSet()

Synopsis
#include <ProSection.h>
ProErrorProSectionAutodim(
ProSection section
/* (In)
The solved section. This cannot be NULL.
*/
ProWSecerror* sec_errors
/* (Out)
The section errors filled out by the function, if any. Before calling this function, allocate the pointer to ProWSecerror using ProSecerrorAlloc(). This array is populated if the function returns a value other than PRO_TK_NO_ERROR. Free the allocated memory later using the function ProSecerrorFree().
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully regenerated the section.
PRO_TK_BAD_INPUTSThe input argument is invalid.
PRO_TK_BAD_CONTEXTIntent Manager mode is used for the section
PRO_TK_OUT_OF_MEMORYThere was a memory error.
OtherAnother error occurred and the function failed.

Manual References:

  1. Element Trees: Sections: Automatic Section Dimensioning
  2. Element Trees: Sketched Features: Reference Entities and Use Edge

Sample Code References:

  1. pt_examples ( TestExtrude.c )
  2. pt_examples ( TestSect.c )
  3. pt_examples ( TestSect.c )
  4. pt_examples ( UtilSect.c )
  5. pt_geardesign ( GearDesignUtils.c )
  6. pt_geardesign ( GearDesignUtils.c )
  7. pt_userguide ( Ug3DSection.c )
  8. pt_userguide ( Ug3DSection.c )
  9. pt_userguide ( Ug3DSection.c )
  10. pt_userguide ( Ug3DSection.c )
  11. pt_userguide ( UgSktFirstFeatureCreate.c )
  12. pt_userguide ( UgSktFirstFeatureRevCreate.c )