rajmohan1982
New member
Hello Sir,
I am facing Problem in ProSelect() function .. I am unable to select a Feature. Since Auxiliary Application window is in Active mode...
#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");
}
I am facing Problem in ProSelect() function .. I am unable to select a Feature. Since Auxiliary Application window is in Active mode...
#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");
}