Home > User Guide > Model Management > Part Management
Creating a Part
Use the api_pm_create_part (or api_part_create) function to create a new part in C++. This will provide the context and history required. In ACIS MFC, if you construct a document it automatically creates a part.
When you open Scheme, a part exists by default, but is empty and unnamed (has no identifier). You can use the part:new extension to create a specific named part.
The PART class provides methods and data for grouping entities together as parts. Some of the capability provided by the PART methods includes:
- Add an ENTITY to a part, return its ID
- Set the name for the part
- Attach a history stream to the given part
- Clear a part by deleting all entities and roll back data
- Return a list of entity_callbacks for the part, which are invoked when the entities in the part are affected
- Get a list of all top level entities in the part that pass a given filter
- Returns a flag telling if a part has been modified since the last save
- Load a part from a file, save a part to a file
- Look up a part by its ID
- Return the units used in the part, convert between part units and millimeters
- Remove an ENTITY from a part
Beginning with ACIS Release 7.0, the default behavior of distributed history in the PART component is now off. The options distributed_history and part_history have been removed. Two new APIs have replaced this functionality: api_part_set_distribution_mode and api_part_get_distribution_mode. The Scheme extensions part:set-distribution-mode and part:get-distribution-mode have also been added. If no call is made to api_part_set_distribution_mode to turn distributed history on, no distribution is done by the part manager.
[Top]
© 1989-2007 Spatial Corp., a Dassault Systèmes company. All rights reserved.