biw01
Automotive
- Dec 31, 2011
- 152
How to explicitly run a NX open VB.Net Prog from outside the NX Tool?
I found the following progaram in C++ for explicitly running a NX open application outside the NX, do we have a VB.NET equivalent for the same ?
*****************************************************************************/
/* Explicit Activation
** This entry point is used to activate the application explicitly, as in
** "File->Execute UG/Open->User Function..." */
extern DllExport void ufusr( char *parm, int *returnCode, int rlen )
{
/* Initialize the API environment */
if( UF_CALL(UF_initialize()) )
{
/* Failed to initialize */
return;
}
/* TODO: Add your application code here */
try{
}//report_parents_of_drafting_curve(curve);
catch (const NXOpen::NXException& ex)
{
// ---- Enter your exception handling code here -----
// NXOpen::UI::GetUI()->NXMessageBox()->Show("UI Styler", NXOpen::NXMessageBox:
ialogTypeError, ex.Message());
}
/* Terminate the API environment */
UF_CALL(UF_terminate());
}
I found the following progaram in C++ for explicitly running a NX open application outside the NX, do we have a VB.NET equivalent for the same ?
*****************************************************************************/
/* Explicit Activation
** This entry point is used to activate the application explicitly, as in
** "File->Execute UG/Open->User Function..." */
extern DllExport void ufusr( char *parm, int *returnCode, int rlen )
{
/* Initialize the API environment */
if( UF_CALL(UF_initialize()) )
{
/* Failed to initialize */
return;
}
/* TODO: Add your application code here */
try{
}//report_parents_of_drafting_curve(curve);
catch (const NXOpen::NXException& ex)
{
// ---- Enter your exception handling code here -----
// NXOpen::UI::GetUI()->NXMessageBox()->Show("UI Styler", NXOpen::NXMessageBox:
}
/* Terminate the API environment */
UF_CALL(UF_terminate());
}