# TREEDEPTH System Variable [GstarCAD 2027](Help%20System/GSTARCAD/2027/Index.md) → [System Variables](Help%20System/GSTARCAD/2027/System%20Variables/(System%20Variables).md) → [T](Help%20System/GSTARCAD/2027/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 can 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 can not be used transparently. --- [Original help](https://www.gstarcad.net/help/GstarCAD_2027_en-US/detail/systemVariables_Tgsv/TREEDEPTH.html) · © Gstarsoft Co., Ltd.