# CVPORT System Variable
[GstarCAD 2027](Help%20System/GSTARCAD/2027/Index.md) → [System Variables](Help%20System/GSTARCAD/2027/System%20Variables/(System%20Variables).md)
**Function Description:**
The CVPORT system variable is used to change the identification code in the current viewport.
| | |
| --- | --- |
| Type | Integer |
| Saved in | Drawing |
| Initial value | 2 |
**System Variable Value:**
Users can 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 can move to viewport when executing a command.
3. The Tablet mode has turned off.
---
[Original help](https://www.gstarcad.net/help/GstarCAD_2027_en-US/detail/systemVariables/CVPORT.html) · © Gstarsoft Co., Ltd.