# REBUILD2DDEGREE System Variable
[GstarCAD 2022](Help%20System/GSTARCAD/2022/Index.md) → [System Variables](Help%20System/GSTARCAD/2022/System%20Variables/(System%20Variables).md) → [R](Help%20System/GSTARCAD/2022/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 can rebuild more complex curves with higher degrees, but computations are required.