Category Sketches and sections, Object ProSection

Function ProSectionEntityUseEdgeChain


Description
Adds chain of entities to the specified section creating them from projections of a portion of a bounding contour of a solid model surface. Simulates behavior of "Sketcher/Geom Tools/Use Edge/Sel Chain" sketcher command. The chain is defined by specifying the surface, two edges which delimit the chain and a vertex at the chain end (to select one of two possible chains connecting the two edges).
Synopsis
#include <ProSection.h>
ProErrorProSectionEntityUseEdgeChain(
ProSection section
/* (In)
The section
*/
ProSelection ref_geom
/* (In)
Referenced surface from whose contour the chain of entities should be created.
*/
ProSelection ref_edge1
/* (In)
First edge delimiting the chain.
*/
ProSelection ref_edge2
/* (In)
Second edge delimiting the chain.
*/
ProSelection ref_vertex
/* (In)
Vertex at the end of the chain.
*/
ProIntlist* p_id_list
/* (Out)
The array of identifiers of entities added. The function allocates the memory for this argument. Call the function ProArrayFree() to release the memory.
*/
int* p_num_ids
/* (Out)
The size of the p_id_list array.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully added the entity.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
See Also
ProArrayFree

Manual References:

  1. Element Trees: Sketched Features: Reference Entities and Use Edge
  2. Element Trees: Sketched Features: Reference Entities and Use Edge

Sample Code References:

  1. pt_examples ( UtilSect.c )