Showing results for 
Search instead for 
Do you mean 
Reply

How-to-turn-the-display-off using VB .NET

Hello,

 

Similar to the following discussion (How-to-turn-the-display-off C ) I want to turn the display of while updating a CAE model.

 

Dim theUFSession As UFSession = UFSession.GetUFSession()

theUFSession.Disp.SetDisplay(UFConstants.UF_DISP_SUPPRESS_DISPLAY)

... Code to execute without screen update

theUFSession.Disp.SetDisplay(UFConstants.UF_DISP_UNSUPPRESS_DISPLAY)

theUFSession.Disp.RegenerateDisplay()

 

This however does not stop the screen updating.

 

Thanks

1 REPLY

Re: How-to-turn-the-display-off using VB .NET

Have you tried calling the functions used in the other answer you referenced:

 

UF_DISP_set_display(UF_DISP_SUPPRESS_DISPLAY);
// do some work
UF_DISP_set_display(UF_DISP_UNSUPPRESS_DISPLAY);
UF_DISP_refresh();
// or call
UF_DISP_regenerate_display();

These functions (or their equivalents) can be called from VB code. They are in the NXOpen.UF class.

山田
yamada