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

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

Participant

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

2 REPLIES 2

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

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


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

Hello!

Thank you! That was the function I looking for!

Greetings Lars

Announcements