cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Getting the generic from a given instance (ProMdl) by Toolkit

LarsZiegler
5-Regular Member

Getting the generic from a given instance (ProMdl) by Toolkit

Hello!

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!

Greetings, Lars


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.
2 REPLIES 2

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.

Regards,

Vinay Marje


LarsZiegler
5-Regular Member
(To:LarsZiegler)

Hello!

Thank you! That was the function I looking for!

Greetings Lars

Top Tags