Refresh Tree and Pause Tree

Goal: Refresh the Mechanical tree. This is needed for certain operations that visually appear only after an update of the tree.

Code:

Tree.Refresh()

Pause the Tree

You can also pause the tree from updating while doing a long-running script, such as the your-script example blow.

Code:

with Transaction():
      your-script