×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

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

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

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

(OP)
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 --> VB

! 
!  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

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

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

 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
 

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

(OP)
Hello Apekas,

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

Thank you,
Amitabh

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

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:
https://docs.plm.automation.siemens.com/tdoc/nx/10...

https://docs.plm.automation.siemens.com/tdoc/nx/10...

www.nxjournaling.com

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

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources