Update ANT display whilst journal is running

Hello everyone!
I am writing a journal that sets some component attributes along with a few other things.
Right before the journal ends, it would be nice to let the user see a temporary display of object names in the graphics window (which already works nicely) in comparison to the attribute values displayed in the Assembly Navigator Tool (ANT).
Finally the user would prompt a message, the journal would switch off the object names display in the graphics window and the jounal would be finished.

That's the plan ;-)

The only drawback actually is, that the ANT keeps showing the old attribute's values that were valid before the journal started, until the jounal has finished.
Only after finishing the journal, the ANT display updates to the new values.
This might be a bit confusing to the users.

So I am looking for a way to trigger this ANT display update programmatically at the journal's runtime.

Someone has proposed UF.Disp.MakeDisplayUpTpDate but I haven't managed to get this working: "'Disp' is not a member of 'NXOpen.UF.UF'."

As I found no example at the vendor's I suspect this is not possible... any other hints are highly appreciated.

Cheers,
Udo

To call the .MakeDisplayUpToDate function, you will need a reference to the UFSession object. There is some example code below.

Dim theUfSession As UFSession = UFSession.GetUFSession
theUfSession.Disp.MakeDisplayUpToDate()

However, I'm not sure that this function will update the navigators with new attribute data. Another method that you may want to try is the .DoUpdate method; again, I'm not sure it will update the navigators, but it is worth a try.

Dim nErrs1 As Integer
nErrs1 = theSession.UpdateManager.DoUpdate(markId1)

theSession.Preferences.Modeling.UpdatePending = False

Thank you for the proposal. Now I was able to try it:
Dim theUfSession As UFSession = UFSession.GetUFSession
theUfSession.Disp.MakeDisplayUpToDate()

did not have the effect I was looking for: Not updating the ANT's content during runtime.
Also, sorry I'm not sure about what to do with that "markId1" in the 2nd code example.
Anyway: thank you, it was worth trying.
Cheers,

/UdoMM

For the second example, you will need an undo mark somewhere in your code. If anything goes wrong when NX performs the update, NX will roll back to that undo mark.

Again, the API doesn't give us direct access to the navigators, so this method may not work.

OK, I have checked the 2nd example, still no update of ANT display during journal runtime. Don't worry - I will instruct the users to cope with that. Thanks for your support.

/UdoMM