Repainting Windows
Functions Introduced:
The function
ProWindowClear() temporarily removes all graphics from the specified window. If you give the function a window identifier of –1, it clears the current window.
This function is not equivalent to the
Creo Parametric option to quit the window. It does not break the connection between the current solid and the window. That is the purpose of the function
ProWindowDelete(), described later in this section.
The
ProWindowRepaint() function is equivalent to the
Creo Parametric command
Repaint in the
Graphics toolbar, and removes highlights. The function accepts –1 as the identifier, which indicates the current view.
The function
ProWindowRefresh() is designed primarily for the purposes of animation. It updates the display very efficiently, but does not remove highlights. The function accepts –1 as the window identifier, which indicates the current window.
The function
ProWindowRefit() performs exactly the same action as the
Creo Parametric command > . (It does not accept -1 as the current window. Use
ProWindowCurrentGet() if you need the id of the current window.)
The function
ProTreetoolRefresh() refreshes the display of the model tree for the specified model. This function is useful when you are modifying the model in some way, such as when you are creating patterns or features.