Vin Yovanovich

Home Consulting Resume Pro/TOOLKIT Pro/RTOOLKIT Articles

 
 
       
#include <stdio.h>
#include <ProCore.h>
#include <ProNotify.h>

ProError UserTestNotification(ProFeature *feat_handle)
{
  printf("%d\n",feat_handle->id);
  return PRO_TK_NO_ERROR;
}


int main(void){

  char key[1024];
  ProError err;
  ProBoolean random;
  ProProcessHandle proe_handle;

  err = ProEngineerConnect("",NULL,NULL,"",PRO_B_TRUE, 20, &random, &proe_handle);
  if(err != PRO_TK_NO_ERROR){
    puts("Connection attemp unsuccessful, exiting");
    return -1;
  }
  printf("Connection to ProE estabilished!\n");
 
  ProNotificationSet(PRO_FEATURE_REGEN_POST,(ProFunction) UserTestNotification);


  while(1){
    ProEventProcess();
  }
  return 0;
}
      

Home • About Me • Search • Site Map • Contact

 
 

Copyright @20XX   Vin Yovanovich,  All rights reserved.