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

SCAN_DEF defines the copy_scan method, which is used in many places in the system to gather a list of connected entities. APIs api_copy_entity and api_del_entity use the list to copy or delete all of the connected entities.

Signature

void MY_ENTITY::copy_scan( ENTITY_LIST &list, SCAN_TYPE reason ) const

Implementation

Most derived entities will simply add each entity pointer to the list. Introduced in ACIS Release 5.0 is the SCAN_TYPE reason code. This allows an application to have different behavior depending on the reason copy_scan is being called. The reason codes are defined in an enumerated type:

enum SCAN_TYPE {

SCAN_UNSPECIFIED,

SCAN_COPY,
// The default for backward compatibility

SCAN_DELETE,

SCAN_DISTRIBUTE,

SCAN_DEEP_COPY,

SCAN_PATTERN,

SCAN_PATTERN_DOWN
};
PDF/APPDEV/09ENT.PDF
HTM/DATA/ACIS/APPDEV/09ENT/0011.HTM