Component:Part Manager
From DocR21
The Part Management Component (Part), provides basic support for grouping entities into parts and for processing those parts in various ways:
- Grouping entities together as parts
- Getting all entities in the part
- Loading and saving parts as ACIS save files (SAT files)
Parts are a logical way to collect related entities into assemblies. For example, a hub, spokes, and rim could be grouped together into a part called a wheel. The Part Manager provides classes and functions that operate on entities in a part.
Parts can be saved and loaded as standard ACIS save files (SAT files). ACIS files created by other systems can be loaded as parts. A PART instance implements a derivation of the history manager, and roll back is supported.
- Behavior Change
- The Part Manager must be initialized and terminated explicitly using api_initialize_part_manager and api_terminate_part_manager.
| Operation | Description |
|---|---|
| Creating a Part | Create a new PART. |
| Updating a Part | Inform the PART that model(s) within it have been modified. |
| Viewing Interface for a Part | Reflect PART changes in your view. |
| Operation | Description |
|---|---|
| PART | The core class for relating a group of ENTITYs into a PART. |
| PART_CONTEXT | A pure virtual base class for connecting a PART with a rendering subsystem. |
| entity_callback | Provides notification of changes to ENTITYs. |
| roll_callback | Provides notification that a roll operation occurred. |
For a full list of Part Manager functions, classes, and APIs, refer to the Part Manager Interface or the Part Manager with Scheme Toolkit. The following is a brief listing of the basic Part Manager APIs.
| Operation | Operation through Scheme | Description |
|---|---|---|
| api_initialize_part_manager | Initializes the Part Manager Component. | |
| api_part_add_entity | api_pm_add_entity | Adds an entity to a PART. |
| api_part_create | api_pm_create_part | Creates a new PART. |
| api_part_delete | api_pm_delete_part | Deletes a PART. |
| api_part_entity_id | api_pm_entity_id | Gets the ENTITY ID and PART for an ENTITY. |
| api_part_load | api_pm_load_part | Loads a file into a PART. |
| api_part_lookup_entity | api_pm_lookup_entity | Gets an ENTITY given an ID and a PART. |
| api_part_entities | api_pm_part_entities | Gets a list of ENTITYs in a PART. |
| api_part_remove_entity | api_pm_remove_entity | Removes an ENTITY from a PART. |
| api_part_save | api_pm_save_part | Saves a PART to a file. |
| api_terminate_part_manager | Terminates the Part Manager Component. |
