Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

ProFaminstanceCreate returning error

apilikov

New member
Hi all!
I have a problem with function ProFaminstanceCreate. this routine returns PRO_TK_CANT_OPEN. May be somebody have already met this error code and may be knows what does it mean and how to fix it?
Any information will be useful for me.
Thank you very much.
 
apilikov,


You need to read the API Wizard that explains Pro/TOOLKIT functions and their return codes. Here is the ProfaminstanceCreate definition.
Function ProFaminstanceCreate







Description


Creates an instance model of the specified instance handle.


Note: if this succeeds, this also verifies the instance in the family table.

Synopsis

#include <ProFaminstance.h>

ProError
ProFaminstanceCreate
(


ProFaminstance *proinst



/* (In)


The instance handle


*/


ProMdl *inst_model



/* (Out)


The handle to the instance model


*/

)

Returns






PRO_TK_NO_ERROR

The function successfully created the



instance model.

PRO_TK_E_NOT_FOUND

The specified instance does not exist in



the family table, or the specified model



item is not table-driven.

PRO_TK_GENERAL_ERROR

A general error occurred and the function



failed.

PRO_TK_CANT_OPEN

Pro/ENGINEER cannot regenerate the instance.



The instance has been created but the failed



features have been suppressed.
 
2 williaps

thank you very much williaps. I know that it is quite useful sometimes to read the api docs. I have read about this function thousands of times. )))
there were a simple bug in my code not related with protoolkit and I've already fixed it.
thank you very much!
 
Sorry for opening very old thread.

I caught in same behavior of API ProFaminstanceCreate() , it is always returning PRO_TK_CANT_OPEN .I just want to know what is cause & resolution of this issue.

Thanks
 
The documentation says that there are failed features that were suppressed. However; the instance was created. I would think that there is something wrong with the model.
 

Sponsor

Articles From 3DCAD World

Back
Top