# REBUILD2DDEGREE System Variable
[GstarCAD 2021](Help%20System/GSTARCAD/2021/Index.md) → [System Variables](Help%20System/GSTARCAD/2021/System%20Variables/(System%20Variables).md) → [R](Help%20System/GSTARCAD/2021/System%20Variables/R/(R).md)
## Function Description:
The REBUILD2DDEGREE system variable is used to set the global degree when rebuilding a spline.
| | |
| --- | --- |
| Type | Integer |
| Saved in | Registry |
| Initial value | 3 |
| Range | 1 \~ 11 |
If the degree is 1, it rebuilds a straight line; if the degree is 2, it rebuilds a curve with one bend. A Bezier curve has a degree of 3\. It could rebuild more complex curves with higher degrees, but computations are required.
---
## Other versions with matching text
[GstarCAD 2016](../../../2016/System%20Variables/R/REBUILD2DDEGREE%20System%20Variable.md) · [GstarCAD 2017](Help%20System/GSTARCAD/2017/System%20Variables/R/REBUILD2DDEGREE%20System%20Variable.md) · [GstarCAD 2018](Help%20System/GSTARCAD/2018/System%20Variables/R/REBUILD2DDEGREE%20System%20Variable.md) · [GstarCAD 2019](Help%20System/GSTARCAD/2019/System%20Variables/R/REBUILD2DDEGREE%20System%20Variable.md) · [GstarCAD 2020](Help%20System/GSTARCAD/2020/System%20Variables/R/REBUILD2DDEGREE%20System%20Variable.md)