Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

NX11 - VB code for Message box timer?

Status
Not open for further replies.

Kenja824

Automotive
Nov 5, 2014
949
We have a bunch of guys who forget to think about saving as they work. Every once in a while if power goes out or NX kicks someone out or something, they will lose everything they did. So my boss was asking if a button could be created that would run a timer and every 20 minutes or so, a message will pop up reminding them to save.

If this can be done, there are some restrictions I would like to add if it is possible.
1) The timer is automatically reset every time they save. So it doesnt pop up the msg box only a couple minutes after they save.
2) The MSG BOX has an OK button to hit to continue working. We dont want an auto save because there are times we go into files and dont save.
3) If the msg box pops up and they are in a meeting, it wont add more every 20 minutes. Just one will stay on the screen.

I can make buttons and such. I just dont have any idea how to write code for something like that. Is this possible?
 
Replies continue below

Recommended for you

Something other than the built-in save reminder?
Customer Defaults-> gateway-> General-> Part then towards the bottom.
I have ours set for 30 minutes

ironic that mine popped up as I was typing this...
 
Thanks robnewcomb

I was excited to see it was already a setting available for us. Unfortunately, it looks like this only does a "Save All" type of save. Is it possible to set the reminder to doing a Save Work Part Only? If not, then I am back to looking for code that will do this. :eek:)

Often we have one person working on a tool that is broken down into several units. He might be doing something in that tool in one area while others are doing changes to the unit levels in another area of the tool. If someone does a Save All, it overwrites all of the others and causes problems. So now the original modelers/designers will use save all as they work, but once they hand it off and detailers are working on the different units, they are only to use Save Work Part Only.
 
Hi,
Your process is very dangerous in native mode. But I mean that you don't have Teamcenter.
In NX12, it's possible to add Password write protection on part file to avoid this kind of problem. Maybe it will help

Regards
Didier Psaltopoulos
 
Kenja824 said:
I was excited to see it was already a setting available for us. Unfortunately, it looks like this only does a "Save All" type of save. Is it possible to set the reminder to doing a Save Work Part Only? If not, then I am back to looking for code that will do this. clown

The out of the box reminder is not saving anything..it is just a reminder. Nothing more.

Ronald van den Broek
Senior Application Engineer
Winterthur Gas & Diesel Ltd
NX9 / TC10.1.2

Building new PLM environment from Scratch using NX11 / TC11
 
We have been doing it this way for years and have had few problems. If someone does save over the others, the ones who were saved over can do a save as, then go into the folders and change the names to the files so the new one has the original name. At the very worst, sometimes the one with the main assembly is forced to make sure the file is opening up the children again. Its just a bit of a hassle is all. So what I did in the past is remove the regular SAVE button and I replaced it with my own button that does a Save Work Part Only. Most use that button and we have very few problems with people saving over each other now.

My problem is I need a timer to remind people to save their stuff and the built in timer is a Save All, which would cause problems for us.

NutAce
I hate to contradict you but I just tested the timer. The pop-up asks, "Do you want to save your work now?" and has three buttons on it. "No", "Save All Now" and "Cancel". Though we can fix any problems with people saving over each other, if this was to be popping up, it would likely be having us spending more time fixing save over problems more than working on the job. No way am I going to turn this timer on and tell people "dont touch the middle button". :eek:P If this built in timer had an option to switch it to Save Work Part Only instead of Save All, it would have been perfect. It doesnt that I see, so i am stuck looking for some code that can do the same thing.
 
For whatever its worth, That's what I tell people to do.


Though I only have 2 users at any given time, We only have 2 NX seats.

Even my 17yr old Daughter ( who works part-time for us) has enough common sense to not hit the save button on that reminder when it pops up.
 
Yeah, I wish I could trust everyone would use the common sense your daughter does. lol Between Detailers, Designers, Checkers and Leaders, we have near around 40 people running NX. Thats the tooling side. Maybe another half dozen to a dozen in processing. Most of them are pretty smart. What scares me is the new kids that come in and learn on the job. Not to mention guys work for ten hour days and start paying less attention to detail near the end.

I'm gonna run it by the boss, but even if he wants to use it, I think I will continue looking for how to write code to do this safer.
 
With that quantity of users, I'd think TC or other PDM would be necessary.
10 hour days? I'm on 12+ right now. Tooling is a rollercoaster...

I "think" I have TC Rapid start? When we traded up one of our ADVDES bundles to a AS5051 a bunch of new stuff shows up on my GTAC downloads page now. including a TC and TC rapidstart tab. Though I have no clue as to how to implement it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor