Methods and Properties Introduced:
|
|
pfcModelItemOwner.ListItems() |
|
|
pfcFeature.ListSubItems() |
|
|
pfcModelItemOwner.GetItemById() |
|
|
pfcModelItemOwner.GetItemByName() |
|
|
pfcFamColModelItem.RefItem |
All models inherit from the class pfcModelItemOwner. The method pfcModelItemOwner.ListItems returns a sequence of pfcModelItems contained in the model. You can specify which type of pfcModelItem to collect by passing in one of the enumerated pfcModelItemType values, or you can collect all pfcModelItems by passing null as the model item type.
If the model has multiple bodies, the method pfcModelItemOwner.ListItems() returns the exception pfcXToolkitMultibodyUnsupported.
Note
The part modeling features introduced in Creo Parametric1.0 will be excluded from the list of features returned by the method pfcModelItemOwner.ListItems() if the model item type is specified asITEM_FEATURE. For example edit round features, flexible modeling features, and so on will be excluded from the list.
The methods pfcFeature.ListSubItems() and pfcModelItemOwner.ListItems() produce similar results for specific features and layers. These methods return a list of subitems in the feature or items
in the layer.
To access specific model items, call the method pfcModelItemOwner.GetItemById(). This methods enables you to access the model item by identifier.
To access specific model items, call the method pfcModelItemOwner.GetItemByName(). This methods enables you to access the model item by name.
The property pfcFamColModelItem.RefItem returns the dimension or feature used as a header for a family table.
The property pfcSelection.SelItem returns the item selected interactively by the user.