GstarCAD 2027 · System Variables
System Variables > T System Variables > TREEDEPTH
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.
2022 · 2023 · 2024 · 2025 · 2026
Article ID: 3604
Created: September 26, 2026
Last Updated: September 25, 2026
Author: kbadmin
Online URL: https://www.kb2.gstarcad.com.my/article.php?id=3604