×
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

Auto run an NXOpen exe program in NX 9 ?

Auto run an NXOpen exe program in NX 9 ?

Auto run an NXOpen exe program in NX 9 ?

(OP)
Can someone let me know if there is a way to auto execute a NX Open executable file (.exe) without someone physically executing this using File --> Execute.

The context of my problem statement is that I am using a Filesystemwatcher to monitor a folder on my pc. It automatically alerts if there are any few files added to this folder. I need a way to launch my NXopen program automatically everytime someone add a new file.

I would appreciate your help in this regard.

Thanks,
Amitabh

RE: Auto run an NXOpen exe program in NX 9 ?

That can be done using something called Menuscripts where you can modify menu actions to launch custom applications as either a supplement to or a replacement of the normal menu action.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.

RE: Auto run an NXOpen exe program in NX 9 ?

(OP)
John,

Thank you for replying to my query.
Where can I find more information on how to create a menuscript ?

Amitabh

RE: Auto run an NXOpen exe program in NX 9 ?

The NX help is always a great place to start. The menuscript help can be found in the "programming tools" section of the help, which is not installed by default. You may need to re-run the help install program to find it.

www.nxjournaling.com

RE: Auto run an NXOpen exe program in NX 9 ?

(OP)
Thank you Cowski. I will look that up in my help file.

RE: Auto run an NXOpen exe program in NX 9 ?

I believe that you can use the User Exits to have a dll executed at particular times automatically by NX.

We run NX Open with Visual Studio and when you use the template NX9 Open c# Wizard it creates a ReadMe.txt, that I have attached to this post, which describes these User Exits.

E.g.

User Exit Environment Variable Entry Point
Open Part USER_RETRIEVE ufget
New Part USER_CREATE ufcre
Save Part USER_FILE ufput

I haven't actually used these myself but this may be what you are looking for.

Paul

Paul Turner
CAD & Process Engineer
Mastip Technology

RE: Auto run an NXOpen exe program in NX 9 ?

Could you create it as a Service ?

NX 9.0.3.4
NX 10.0.1.4 (Testing)
Windows 7 64 (Windows 8.1 Tablet)

RE: Auto run an NXOpen exe program in NX 9 ?

(OP)
Cowski,

Once we open NX using the process.start , can we fire an NXOpen executable within the new NX session automatically ?

Thanks,
Amitabh

RE: Auto run an NXOpen exe program in NX 9 ?

If you've compiled your program as an .exe, you won't need to open NX. Use process start on your .exe and it will start NX as necessary.

www.nxjournaling.com

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