# CVPORT System Variable [GstarCAD 2016](../../Index.md) → [System Variables](../%28System%20Variables%29.md) → [C](%28C%29.md) ## Function Description: The CVPORT system variable is used to change identification code in current viewport. | | | | --- | --- | | Type | Integer | | Saved in | Drawing | | Initial value | 2 | ## System Variable Value: Users could change current viewport by setting the CVPORT system variable, first they should meet the following conditions: 1\. The specified identification code should be one active viewport code. 2\. The cursor has not been locked and it could move to viewport when executing a command. 3\. The Tablet mode has turned off. --- ## Other versions with matching text [GstarCAD 2017](../../../2017/System%20Variables/C/CVPORT%20System%20Variable.md) · [GstarCAD 2018](../../../2018/System%20Variables/C/CVPORT%20System%20Variable.md) · [GstarCAD 2019](../../../2019/System%20Variables/C/CVPORT%20System%20Variable.md) · [GstarCAD 2020](../../../2020/System%20Variables/C/CVPORT%20System%20Variable.md) · [GstarCAD 2021](../../../2021/System%20Variables/C/CVPORT%20System%20Variable.md)