rajmohan1982
New member
hello,
on the Pro Engineer main screen...... click on TOOLS ----> AUXILUARY APPLICATION a small window is opened... Their i have registered protk.dat file. which consist of following details
NAME Only Selection dll
STARTUP dll
EXEC_FILE D:\proeWildfire 2.0\protoolkit\protk_appls\sample1\onlyselection.dll
TEXT_DIR D:\proeWildfire 2.0\protoolkit\protk_appls\sample1\onlyselection
allow_stop TRUE
REVISION Wildfire
END
when i have started the application Only Selection dll the AUXILUARY APPLICATION window(i.e the small window) is not closing or it is not allowing to select any feature ..... if i am selecting, Beap Sound is coming.... while selecting i.e taking the cursor on to the feature it should highlight in sky blue colour. Which is not happening......
Please solve this problem... i have been frustrated from past 2 weeks
here is my C Program
#include <ProToolkit.h>
#include <ProMessage.h>
#include <ProFeature.h>
#include <ProMdl.h>
#include <ProUtil.h>
#include <TestError.h>
#include <ProSelection.h>
#include <ProWchar.h>
ProError status;
ProSection section;
wchar_t wname;
int windowid;
ProFileName msgfil;
ProError err;
ProMdl model;
ProError status;
ProSelection *sel = NULL;
int n_sel;
ProModelitem item;
int user_initialize()
{
ProStringToWstring(msgfil, "selection.txt") ;
err = ProMdlCurrentGet(&model);
printf("Select a feature.");
status = ProSelect("feature", 1, NULL, NULL, NULL, NULL, &sel, &n_sel);
ProWindowRepaint(PRO_VALUE_UNUSED);
if(status == PRO_TK_NO_ERROR)
{
ProSelectionModelitemGet (sel[0], &item);
ProMessageDisplay(msgfil,"Feature Selected \n");
ProSelectionHighlight (sel[0],PRO_COLOR_HIGHLITE);
}
return 0;
}
void user_terminate()
{
printf("Terminated");
}
with best wishes from
Raj Mohan
on the Pro Engineer main screen...... click on TOOLS ----> AUXILUARY APPLICATION a small window is opened... Their i have registered protk.dat file. which consist of following details
NAME Only Selection dll
STARTUP dll
EXEC_FILE D:\proeWildfire 2.0\protoolkit\protk_appls\sample1\onlyselection.dll
TEXT_DIR D:\proeWildfire 2.0\protoolkit\protk_appls\sample1\onlyselection
allow_stop TRUE
REVISION Wildfire
END
when i have started the application Only Selection dll the AUXILUARY APPLICATION window(i.e the small window) is not closing or it is not allowing to select any feature ..... if i am selecting, Beap Sound is coming.... while selecting i.e taking the cursor on to the feature it should highlight in sky blue colour. Which is not happening......
Please solve this problem... i have been frustrated from past 2 weeks
here is my C Program
#include <ProToolkit.h>
#include <ProMessage.h>
#include <ProFeature.h>
#include <ProMdl.h>
#include <ProUtil.h>
#include <TestError.h>
#include <ProSelection.h>
#include <ProWchar.h>
ProError status;
ProSection section;
wchar_t wname;
int windowid;
ProFileName msgfil;
ProError err;
ProMdl model;
ProError status;
ProSelection *sel = NULL;
int n_sel;
ProModelitem item;
int user_initialize()
{
ProStringToWstring(msgfil, "selection.txt") ;
err = ProMdlCurrentGet(&model);
printf("Select a feature.");
status = ProSelect("feature", 1, NULL, NULL, NULL, NULL, &sel, &n_sel);
ProWindowRepaint(PRO_VALUE_UNUSED);
if(status == PRO_TK_NO_ERROR)
{
ProSelectionModelitemGet (sel[0], &item);
ProMessageDisplay(msgfil,"Feature Selected \n");
ProSelectionHighlight (sel[0],PRO_COLOR_HIGHLITE);
}
return 0;
}
void user_terminate()
{
printf("Terminated");
}
with best wishes from
Raj Mohan