Methods and Properties Introduced:
|
|
pfcWindow.GraphicsAreaHeight |
|
|
pfcWindow.GraphicsAreaWidth |
|
|
pfcBaseSession.FlushCurrentWindow() |
The properties pfcWindow.Height, pfcWindow.Width, pfcWindow.XPos, and pfcWindow.YPos retrieve the height, width, x-position, and y-position of the window respectively. The values of these parameters are normalized
from 0 to 1.
The properties pfcWindow.GraphicsAreaHeight and pfcWindow.GraphicsAreaWidth retrieve the height and width of the Creo Parametric graphics area window without the border respectively. The values of these parameters are normalized from 0 to 1. For both
the window and graphics area sizes, if the object occupies the whole screen, the window size returned is 1. For example, if
the screen is 1024 pixels wide and the graphics area is 512 pixels, then the width of the graphics area window is returned as 0.5.
The method pfcWindow.Clear() removes geometry from the window.
Both pfcWindow.Repaint() and pfcWindow.Refresh() repaint solid geometry. However, the Refresh method does not remove highlights from the screen and is used primarily to remove temporary geometry entities from the screen.
Use the method pfcWindow.Close() to close the window. If the current window is the original window created when Creo Parametric started, this method clears the window. Otherwise, it removes the window from the screen.
The method pfcWindow.Activate() activates a window. This function is available only in the asynchronous mode.
The method pfcWindow.GetId() retrieves the ID of the Creo Parametric window.
The method
pfcBaseSession.FlushCurrentWindow() flushes the pending display commands on the current window.
Note
It is recommended to call this method only after completing all the display operations. Excessive use of this method will
cause major slow down of systems running on Windows Vista and Windows 7.