Showing results for 
Search instead for 
Did you mean: 

Using Executables.


Right now I have an NXOpen ufunc in c#. All it does is open a part file in an external (non-interactive) version of NX. I wrote it using Visual Studio 2013. When I press the Green start arrow in the Visual Studio IDE, the program runs fine. However when I double click the executable, an "System.Runtime.InteropServices.SEHException" exception is thrown. And the method that it is being thrown from is "JAM_SESSION_initialize".

Does anybody know why this is happening?


Re: Using Executables.

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Use the run_managed.exe utility shipping with NX to execute a .NET executable.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.1, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 ( | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX12.0 | AWC 3.4 Preparing: NX12.0

Employees of the customers, together we are strong Smiley Wink
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide