Variant Feature Model
Functions Introduced:
• ProVariantfeatMdlGet()
• ProMdlIsVariantfeatMdl()
• ProMdlVariantfeatAsmcomppathGet()
• ProModelitemVariantfeatAsmcomppathGet()
Use the function ProVariantfeatMdlGet() to obtain the special model pointer from a variant feature. A special ProMdl handle represents the "inherited" or "flexible" model handle in functions which access variant features. This handle is called the "Variant Feature Model". Only certain functions will support inputs including the Variant Feature Model handle.
The function ProMdlVariantfeatAsmcomppathGet() returns a special pointer ProAsmcomppath from a variant feature. ProAsmcomppath is the pointer to the component path from the model owner of the top level inheritance feature or the top flexible component to the specified variant feature model.
Both these pointers can be used for accessing properties that can be modified by the presence of an inheritance feature or flexible component. Other functions will return an error PRO_TK_INVALID_PTR if provided with this pointer.
|
Note:
|
If you are using the variant feature model handle and you need to use an unsupported function on it, you can attempt to retrieve the actual model by extracting the model name and type from the model and using ProMdlnameRetrieve() to get the original model. This requires that the parent model be accessible in session. Remember that the parent model will not reflect variations applied by the variant feature.
|
Use the function ProMdlIsVariantfeatMdl() to identify if a model pointer is a variant feature model handle.
Use the function ProModelitemVariantfeatAsmcomppathGet() to obtain the component path from an inheritance feature or a flexible component model owner to the specified varied item model item.