Category Sketches and sections, Object ProSection

Function ProSectionEntityReplace


Description
Replaces an entity from the specified section with another entity from the same section (for redefine purposes).
Synopsis
#include <ProSection.h>
ProErrorProSectionEntityReplace(
ProSection section
/* (In)
The section
*/
int orig_entity_id
/* (In)
The identifier of the entity to be replaced
*/
int new_entity_id
/* (In)
The identifier of the entity to replace the old one
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully deleted the entity.
PRO_TK_NOT_EXISTEither of the two input identifiers are invalid.
PRO_TK_GENERAL_ERRORReplacement could not be completed.
PRO_TK_UNSUPPORTEDThe function does not support entity type PRO_2D_COMPOSITE_CURVE.

Manual References:

  1. Element Trees: Sections: Adding Section Entities

Sample Code References:

  1. pt_userguide ( Ug3DSection.c )