Component:Part Manager
From DocR23
Part Manager Component
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.
What's New in Part Manager
There are no documented changes in ACIS R23.
Part Manager Operations
| 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. |
Part Manager Classes
| Operation | Description |
|---|---|
| PART | The core class for grouping a set of ENTITYs into a PART. |
| PART_CONTEXT | An abstract base class that connects a PART with a rendering subsystem. This class is a Scheme Toolkit Support class. |
| entity_callback | Provides notification of changes to ENTITYs. |
| roll_callback | Provides notification that a roll operation occurred. |
Part Manager APIs
For a full list of Part Manager functions, classes, and APIs, refer to the Part Manager Interface or the Part Manager with Scheme Toolkit Interface. The following is a brief listing of the basic Part Manager API functions. We recommend that applications use the API functions in the Part Manager Interface rather than the API functions in the Part Manager with Scheme Toolkit Interface.
| 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. |