Documentação da API > Sketches and sections > Object ProSection > Function ProSectionEntityReplace
Function ProSectionEntityReplace
Description
Replaces an entity from the specified section with another entity from the same section (for redefine purposes).
Replacement in Object TOOLKIT:
Synopsis
#include <ProSection.h>
ProSectionEntityReplace
(
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
The function successfully deleted the entity.
Model is in read-only state.
Either of the two input identifiers are invalid.
Replacement could not be completed.
The function does not support entity type PRO_2D_COMPOSITE_CURVE.
Sample Code References
User Guide References
Isto foi útil?