Eng-Tips is the largest forum for Engineering Professionals on the Internet.

Members share and learn making Eng-Tips Forums the best source of engineering information on the Internet!

  • Congratulations JStephen on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

ProFaminstanceCreate returning error

  • Thread starter Thread starter apilikov
  • Start date Start date
A

apilikov

Guest
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.
 

Part and Inventory Search

Sponsor

Back
Top