FIX_POINTER_DEF
List of: Discussion Topic
Subjects: Entity, Extending ACIS
Contents: Application Development Manual

FIX_POINTER_DEF defines the fix_common method, which is called during the final stage of restore and copy to map indices into any array of entities to actual pointer values.

Signature

void MY_ENTITY::fix_common( ENTITY *array[] )

Implementation

When fix_common is called, entity pointers within the derived entity contain indices into an array of entities. These can be mapped to actual pointers with code like the following.

my_entity_ptr = (MY_ENTITY *)read_array( array, my_entity_ptr )

Versioning

ACIS allows an application to restore data in the format of any lower level ACIS version. The version being restored is stored in the global variable, restore_version_number (this can be set with an option). File kernel/kerndata/savres/versions.hxx defines the version when the SAT format changes for any Spatial supplied entities. During copy, the restore_version_number will be set to the most recent version of ACIS.
PDF/APPDEV/09ENT.PDF
HTM/DATA/ACIS/APPDEV/09ENT/0012.HTM