Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

NXOpen: code to update the status bar when saving causes flcikering in status bar

Status
Not open for further replies.

kherman

Military
Jan 21, 2014
20
I have my hooks in place to do some custom save operations when the user saves in NX. However, my code can take many minutes to run so I want to provide updates in the status bar while saving so the user doesn't think NX crashed.

This should work but does not (Java):

UFSession ufs = (UFSession) SessionFactory.get("UFSession");
UFUi ufui = ufs.ui();
ufui.setStatus(status); // This should work.... but doesn't?

When saving there is the save bar visible which does repaint while saving and the area to the right of it that flickers with various text messages while saving. I can see the message flicker but they don't stay up. They immediately disappear.

What is going on here? I'm on NX 8.5.2.3.
 
Replies continue below

Recommended for you

Hi

I tested your code in .net and NX8 and it works as intended.

How many status updates do you have? Perhaps some of the operations between status updates are done so fast that the status message is barely visible(flickering).

Have you tried timing with code the intervals between the update status? or add pauses to check if the status are displayed?
You can try running your code without the save operation, and check the last status shown in the status bar. The save operation has its own status updates.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor