# TREEDEPTH System Variable
[GstarCAD 2019](Help%20System/GSTARCAD/2019/Index.md) → [System Variables](Help%20System/GSTARCAD/2019/System%20Variables/(System%20Variables).md) → [T](Help%20System/GSTARCAD/2019/System%20Variables/T/(T).md)
## Function Description:
The TREEDEPTH system variable is used to specify the maximum depth, it means the number of times the tree-structured spatial index can divide into branches.
| | |
| --- | --- |
| Type | Integer |
| Saved in | Drawing |
| Initial value | 3020 |
## System Variable Value:
**0:** suppress the spatial index entirely. It may eliminating the performance improvement in large drawing. This setting could make sure all objects dealt in database order.
**\>0:** open the spatial index. An integer of up to five digits is valid. The first 3 digits refer to model space, the remaining two digits refer to paper space.
**\<0:** treat objects in model space as 2D objects by ignoring Z coordinates, similar as objects in paper space. This settings is suitable for 2D drawing. It makes efficient use of memory without loss of performance.
**Note:** this system variable could not be used transparently.
---
## Other versions with matching text
[GstarCAD 2016](../../../2016/System%20Variables/T/TREEDEPTH%20System%20Variable.md) · [GstarCAD 2017](Help%20System/GSTARCAD/2017/System%20Variables/T/TREEDEPTH%20System%20Variable.md) · [GstarCAD 2018](Help%20System/GSTARCAD/2018/System%20Variables/T/TREEDEPTH%20System%20Variable.md) · [GstarCAD 2020](Help%20System/GSTARCAD/2020/System%20Variables/T/TREEDEPTH%20System%20Variable.md) · [GstarCAD 2021](Help%20System/GSTARCAD/2021/System%20Variables/T/TREEDEPTH%20System%20Variable.md)