# TREEDEPTH System Variable
[GstarCAD 2015](../../Index.md) → [System Variables](../%28System%20Variables%29.md) → [T](%28T%29.md)
| | |
| --- | --- |
| Type | Integer |
| Saved-in | Drawing |
| Initial value | 3020 |
| Range | -32768 to 32767 |
Specifies the maximum depth, that is, the number of times the tree-structured spatial index can divide into branches.
0 Suppresses the spatial index entirely,eliminating the performance improvements it provides in working with large drawings. This setting assures that objects are always processed in database order.
\>0 Turns on spatial indexing. An integer of up to five digits is valid. The first three digits refer to model space, and the remaining two digits refer to paper space.
\<0 Treats model space objects as 2D (*Z* coordinates are ignored), as is always the case with paper space objects. Such a setting is appropriate for 2D drawings and makes more efficient use of memory without loss of performance
---
## Other versions with matching text
[GstarCAD 8 (2013–2014)](../../../2013/System%20Variables/T/TREEDEPTH%20System%20Variable.md)