User's Guide > Drawings > Drawing Tree
Drawing Tree
Methods introduced:
Use the method wfcWModel2D::CollapseTree to collapse all nodes of the drawing tree in the Creo Parametric window and make its child nodes invisible. The input argument WindowId returns the Id of the window which contains the drawing. Use -1 to expand the drawing tree in the active window.
Use the method wfcWModel2D::ExpandTree 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 method wfcWModel2D::RefreshTree 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.
* 
Specify the input argument WindowId as -1 to refresh, expand, or collapse the drawing tree in the active window.
Was this helpful?