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

Pro/I Error Details.

nikhil_jogi
1-Newbie

Pro/I Error Details.

Hi All

I am writing a Pro/I toolkit programme and was wondering if Pro/I gives any clear description of errors other than the error number. e.g. when I enter wrong login info, it returns me error # 501 but no details even after using APIs PDMErrorGetDetails and PDM ErrorDumpStack.
I was wondering if there is any way I can connect error number with error description. I have to go to cerror.h include file everytime to check what is the error number and what it means.
Let me know if anybody knows a solution other than me manually making the connection through my code.

Regards
Nikhil
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.
1 REPLY 1

Nikhil,
There is a function called PDMLoadMessages but last I heard it was non
functional. What your're going to have to do is something like this:

void PDMUtilErrGetEnumString(PTCERROR status, char *errStr) {
switch(status) {
case PDM_SUCCESS:
strcpy(errStr, "SUCCESS");
break;
case PDMERR_INTERNAL_ERROR:
strcpy(errStr, "INTERNAL_ERROR");
break;
case PDMERR_NOT_IMPLEMENTED:
strcpy(errStr, "NOT_IMPLEMENTED");
break;
....
}

I coded my own error reporting functions much like PDMTestError.c but with
more functionality. You should check out PDMTestError.c.



Patrick Williams
Application Engineer
Steelcase, Inc.
Announcements
Attention: Creo 7.0 Customers
Please consider upgrading
End of Life announcement here.

NEW Creo+ Topics:
PTC Control Center
Creo+ Portal
Real-time Collaboration