Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations The Obturator on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error in launching NX Open executable using .men (menu file) ?

Status
Not open for further replies.

biw01

Automotive
Dec 31, 2011
152
Hi Everyone,

I am trying to launch custom NX Open applications using a menubar file (.men). While launching NX, I am getting my custom menu launched correctly, but the applications are not working. I am getting an error which is attached in this thread.

Can someone please point out, where I am going wrong ?

Sample menu (.men) file
Code:
! 
!  NX No Part state menu file
!
! 
!
VERSION 120

EDIT UG_GATEWAY_MAIN_MENUBAR
	BEFORE UG_HELP		
	CASCADE_BUTTON VECTRA_TOOLS
    	LABEL Tools
	END_OF_BEFORE
	MENU TOOLS
		BUTTON	ASSIGN_PART_NAME
		LABEL   Assign Part Name
		ACTIONS "C:\Program Files\Pre-Process Modules\APN.exe"
   	END_OF_MENU

Thank you,
Amitabh
 
 http://files.engineering.com/getfile.aspx?folder=05d712bd-265b-46b5-b01e-fb96c01bdc70&file=Application_error.JPG
Replies continue below

Recommended for you

Not sure about this, but maybe the path with spaces in the action line are not been handled correctly.

Try setting the path with the "old" 8.3 nomenclature, something like this

C:\progra~1\pre-pr~1\APN.exe

To find out this 8.3 nomenclature, open a cmd window and use this command: dir /x

You will get and output like this

[pre] Directory of C:\temp

10/06/2016 12:48 PM <DIR> .
10/06/2016 12:48 PM <DIR> ..
10/04/2016 11:14 AM <DIR> Export
10/04/2016 11:14 AM <DIR> Import
10/06/2016 12:46 PM <DIR> PRE-PR~1 Pre-Process Modules
10/06/2016 12:48 PM <DIR> TESTFO~1 test folder
10/04/2016 11:14 AM <DIR> tmp
[/pre]
 
Hello Apekas,

I did try that as well but it does not seem to work. Any other suggestion ?

Thank you,
Amitabh
 
From the text in the error message, it sounds like your application doesn't know where to find the NXOpen dll files. Custom programs that interact with NX are usually placed in the NX "application" folder. If you do not want to move your program to the application folder, you might get it to work by adding the location of the NXOpen dll files to your "PATH" environment variable.

If you have access to the Siemens community site, these links may help:


www.nxjournaling.com
 
Cowski,

I did create a custom environment variable and gave the value as my application root folder path. I did provide this environment variable information in the custom_dirs.dat file. I have a mix of dll and exe files. While all the dll files are working fine, all the exe files are throwing this error. The same exe files are running perfectly fine using File--> execute. Can you please give me an example of the "PATH" environment variable ?

Thanks,
Amitabh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor