Home > User Guide > Model Management > Part Management
Updating a Part
Call the PART::update method after each change to the model. The part itself does not care, but this triggers the entity_callback mechanism with a pm_Update_Entity so that observers know that something interesting has occurred. During a later rollback, the entity_callback mechanism is triggered with a pm_Roll_Update_Entity.
PART::update does change the model and therefore starts a new DELTA_STATE if one is not already open. The reason for the model change is to create a change bulletin on the ID_ATTRIB (and the DISPLAY_ATTRIB if the Graphic Interaction Component [GI] is used). This change bulletin is noticed during rollback and is used keep the PART (and display) in sync with the active state of the model.
The intended usage is for PART::update to be called. Call PART::update and then api_part_note_state inside the delta state where the changes occurred. There is no need to call PART::update after roll.
[Top]
© 1989-2007 Spatial Corp., a Dassault Systèmes company. All rights reserved.