Template for PreCondition custom Exit DLL Program













Template for PreCondition custom Exit DLL Program

For ITK Customization,please see below  PreCondition Custom Exit DLL Program Template.







int iFail=0;

#define DLLAPI_declspec(dllexport)

#define plmerror (EMH_USER_error_base +2)

//get +2 error in TCROOT/lang/en_us/ue_errors.xml

extern DLLAPI int custom_dll_register_callbacks();

extern DLLAPI int GLOBALPLM_execute_callbacks1(int *decision,va_list argc);

extern DLLAPI int GLOBALPLM_execute_callbacks2(int *decision,va_list argc);

extern DLLAPI int GLOBALPLM_add_pre_condition(METHOD_message_t *msg,va_list args);



extern DLLAPI int custom_dll_register_callbacks()





extern DLLAPI int GLOBALPLM_execute_callbacks1(int *decision,va_list argc)


METHOD_id_t method_id;





/* iFail=METHOD_find_method(const char *type_name,const char *msg_name,METHOD_id_t *method_id);

iFail=METHOD_add_pre_condition(METHOD_id_t *method_id,(METHOD_function_t)pre_condition_handler,TC_argument_list_t *user_args); */

return iFail;


extern DLLAPI int GLOBALPLM_add_pre_condition(METHOD_message_t *msg,va_list args)








return plmerror;



extern DLLAPI int GLOBALPLM_execute_callbacks2(int *decision,va_list argc)



printf(“GOOD BYE”);

return iFail;


  Popular Teamcenter Article published

Template for Batch ITK Program

Basic ITK Customization Concept Part-02

Basic ITK Customization Concept Part-01

Teamcenter Customize Error Messages

User Service Mechanism in Teamcenter Customization

Explanation of ITK Login Program

POM Queries in Teamcenter

Teamcenter Workflow Handlers

Microsoft Visual Studio Project configuration for Teamcenter Unified ITK

Teamcenter Unified Customization Basics

Teamcenter Unified Data Model Concept


Four Easy Steps to Get Subscribed

Step1:-Enter your Email address and Hit SUBSCRIBE Button.

Step2:-Please check inbox and open the email with the subject lineConfirm your subscription for Global PLM“.

Step3:-Please click “Confirm Follow” and you got the email with the subject” Confirmed subscription to posts on Global PLM”.

Step4:-Voila, You are subscribed.Happy Learning


We will more post on  PLM Tutorial–>Teamcenter Customization in upcoming days.

Kindly provide your valuable comment on the below Comment section and We will try to provide the best workaround.

Kindly subscribe to your Email-Id at (https://globalplm.com/) and drop any suggestions/queries to (globalplm2@gmail.com).

Leave a Reply

Your email address will not be published. Required fields are marked *