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 an array 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 are excluded from the list of features returned by the method pfcModelItemOwner.ListItems() , if the model item type is specified as ITEM_FEATURE. For example Edit Round features and other Flexible Modeling features will be excluded from the list.
The methods pfcFeature.ListSubItems() and pfcLayer.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(). Use this method to access the model item by identifier.
To access specific model items, call the method pfcModelItemOwner.GetItemByName(). Use this method 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.