Creating and Removing Windows
Functions Introduced:
The function
ProObjectwindowMdlnameCreate() opens a new window containing a specified solid. The solid must already be in memory. If a window is already open on that solid, the function returns the identifier of that window. If the Main Window is empty, the function uses it instead of creating a new one. The section
Graphics Colors and Line Styles shows how to use
ProObjectwindowMdlnameCreate().
The function
ProWindowDelete() closes a window and breaks the object-to-window attachment. The function deletes the window, if it is not the base window. You cannot break the attachment for the currently active window. Use the function
ProWindowCurrentSet()to make a different window be the current window before calling this function.
The function
ProWindowDelete() is the equivalent of the
Creo+ command to quit the window. If the window is not the Main Window, it is also deleted from the screen.
To close the current window, use the function
ProWindowCurrentClose(). When you call this function, the control must be returned to
Creo+ to close the current window.
This function duplicates the behavior of the > command in Creo+. If the current window is the original window created when Creo+ was started, the function clears the window; otherwise, the function removes the window from the screen.
|
 Any work done since the last save will be lost.
|
In Creo+, when the main window is active, you can open an accessory window for operations such as edit an inserted component or a feature, preview an object, select a reference, and some other operations. The model tree associated with this Creo+ object is also displayed in the accessory window. For more information about the accessory window, refer the Creo+ help.
In
Creo TOOLKIT , the function
ProAccessorywindowWithTreeMdlnameCreate() opens an accessory window containing the specified object. If a window is already open with the specified object, the function returns the identifier of that window. If an empty window exists, the function uses that window to open the object. The input argument
tree_flag controls the display of the model tree in the accessory window. If this flag is set to
PRO_B_TRUE the model tree is displayed.