Getting the generic from a given instance (ProMdl) by Toolkit
I iterate through an assembly and get the ProMdl of an component by ProAsmcompMdlGet().
Now I have to check whether the returned ProMdl is an instance and then open the generic.
Does anyone know how to do that with Pro/TOOLKIT?
Thanks for the help!
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
I think you can call ProFaminstanceGenericGet() on the model directly. If you get PRO_TK_NO_ERROR, you get the gen_model returned. If you get PRO_TK_E_NOT_FOUND it means your model is not an instance, it has no generic model.