User's Guide > Drawings > Drawing Tree
Drawing Tree
Pro/ENGINEER Wildfire 5.0 onward, you can view a hierarchical representation of drawing items in an active drawing sheet. This representation is called a Drawing Tree. A drawing tree facilitates selection and availability of drawing operations for the represented drawing items. For more information, see the Creo Parametric Help. Use the following functions to refresh, expand, and collapse the drawing tree:
Functions Introduced:
Use the function ProDrawingtreeRefresh() to rebuild the drawing tree in the Creo Parametric window that contains the drawing. You can use this function after adding a single drawing item or multiple drawing items to a drawing.
Use the function ProDrawingtreeExpand() to expand the drawing tree in the Creo Parametric window and make all drawing sheets and drawing items in the active drawing sheet visible.
Use the function ProDrawingtreeCollapse() to collapse all nodes of the drawing tree in the Creo Parametric window and make its child nodes invisible.
The input arguments to these functions are:
drawing—Handle to the drawing that contains the drawing tree.
window_id —ID of the Creo Parametric window in which you want to refresh, expand, or collapse the drawing tree.
Note:
 
Use PRO_VALUE_UNUSED to refresh, expand, or collapse the drawing tree in the active window.
Example 2: Performing Operations on a Drawing Tree
The sample code in the file UgDrwTree.c located at <creo_toolkit_loadpoint>/protk_appls/pt_userguide/ptu_dwg shows how to expand, collapse, and refresh the drawing tree in the selected drawing.
È stato utile?