Methods and Properties Introduced:
|
|
pfcFamilyMember.GetImmediateGenericInfo() |
|
|
pfcFamilyMember.GetTopGenericInfo() |
|
|
pfcFamilyTableRow.CreateInstance() |
|
|
pfcFamilyMember.ListRows() |
|
|
pfcFamilyMember.RemoveRow() |
|
|
pfcFamilyTableRow.InstanceName |
|
|
pfcFamilyTableRow.IsLocked |
To get the generic model for an instance, call the property pfcFamilyMember.Parent.
From Pro/ENGINEER Wildfire 4.0 onwards, the behavior of the property pfcFamilyMember.Parent has changed as a result of performance improvement in family table retrieval mechanism. When you now call the property pfcFamilyMember.Parent, it throws an exception pfcXToolkitCantOpen, if the immediate generic of a model instance in a nested family table is currently not in session. Handle this exception
and use the method pfcFamilyMember.GetImmediateGenericInfo() to get the model descriptor of the immediate generic model. This information can be used to retrieve the immediate generic
model.
If you wish to switch off the above behavior and continue to run legacy applications in the pre-Wildfire 4.0 mode, set the configuration option retrieve_instance_dependencies to instance_and_generic_deps.
To get the model descriptor of the top generic model, call the method pfcFamilyMember.GetTopGenericInfo().
Similarly, the method pfcFamilyTableRow.CreateInstance() returns an instance model created from the information stored in the pfcFamilyTableRow object.
The method pfcFamilyMember.ListRows() returns a sequence of all rows in the family table, whereas pfcFamilyMember.ListRows() gets the row object with the name you specify.
Use the method pfcFamilyMember.RemoveRow() to permanently delete the row from the family table.
The property pfcFamilyTableRow.InstanceName returns the name that corresponds to the invoking row object.
To control whether the instance can be changed or removed, call the property pfcFamilyTableRow.IsLocked.