# CVPORT System Variable [GstarCAD 2026](Help%20System/GSTARCAD/2026/Index.md) → [System Variables](Help%20System/GSTARCAD/2026/System%20Variables/(System%20Variables).md) → [C](Help%20System/GSTARCAD/2026/System%20Variables/C/(C).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_2026_en-US/detail/systemVariables_Cgsv/CVPORT.html) · © Gstarsoft Co., Ltd.