Inheritance
Many Creo Parametric-related objects inherit methods from other interfaces. In VB.NET and VBA, you must have an object of the correct type for the compiler and IDE to resolve the methods you wish to call. For example, an IpfcComponentFeat object could use the methods and properties as follows:
IpfcObject
IpfcChild
IpfcActionSource
IpfcModelItem
IpfcFeature
IpfcComponentFeat
The following are the approaches to using an object’s inherited methods:
1. You can code the method call directly even though it is not available in Intellisense.
Dim componentFeat as pfcls.IpfcComponentFeat
MsgBox ("Feature number: " & componentFeat.Number);
* 
This works in VB.NET but is likely to result in a compilation error in VBA.
2. You can create another object of the appropriate type and assign it the object handle, and then call the required method.
Dim componentFeat as pfcls.IpfcComponentFeat
Dim feat as pfcls.IpfcFeature

feat = componentFeat
MsgBox ("Feature number: " & feat.Number);
Was this helpful?