Methods and Properties Introduced:
|
|
IpfcModelItemOwner.ListItems() |
|
|
IpfcFeature.ListSubItems() |
|
|
IpfcModelItemOwner.GetItemById() |
|
|
IpfcModelItemOwner.GetItemByName() |
|
|
IpfcFamColModelItem.RefItem |
All models inherit from the interface IpfcModelItemOwner. The method IpfcModelItemOwner.ListItems() returns a sequence of IpfcModelItems contained in the model. You can specify which type of IpfcModelItem to collect by passing in one of the enumerated EpfcModelItemType values, or you can collect all IpfcModelItems by passing null as the model item type.
If the model has multiple bodies, the method IpfcModelItemOwner.ListItems() returns the exception IpfcXToolkitMultibodyUnsupported.
Note
The part modeling features introduced in Creo Parametric 1.0 will be excluded from the list of features returned by the method IpfcModelItemOwner.ListItems() if the model item type is specified asEpfcITEM_FEATURE. For example edit round features, flexible modeling features, and so on will be excluded from the list.
The methods IpfcFeature.ListSubItems() and IpfcLayer.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 IpfcModelItemOwner.GetItemById(). This methods enables you to access the model item by identifier.
To access specific model items, call the method IpfcModelItemOwner.GetItemByName(). This methods enables you to access the model item by name.
The property IpfcFamColModelItem.RefItem returns the dimension or feature used as a header for a family table.
The property IpfcSelection.SelItem returns the item selected interactively by the user.