# OSMODE2 System Variable [GstarCAD 2026](Help%20System/GSTARCAD/2026/Index.md) → [System Variables](Help%20System/GSTARCAD/2026/System%20Variables/(System%20Variables).md) → [O](Help%20System/GSTARCAD/2026/System%20Variables/O/(O).md) ## Function Description: The OSMODE2 system variable needs to be used in conjunction with OSMODE as detailed in the table below. | | | | --- | --- | | Type | Bitcode | | Saved in | Registry | | Initial value | 4 | ## System Variable Value: | | | | | --- | --- | --- | | OSMODE Value | OSMODE2 Value | Description | | 4096 | 0 | Close all snaps. | | 1 | Only "Distance from Endpoint" snap is enabled. | | 2 | Only "Divide" snap is enabled. | | 4 | Only "Extension" snap is enabled. | | ≤7 | To specify more than one running object snap, enter the sum of their values. For example, enter 7 (4+2+1) to specify that "Extension", "Divide", "Distance from Endpoint" snaps are enabled. | --- [Original help](https://www.gstarcad.net/help/GstarCAD_2026_en-US/detail/systemVariables_Ogsv/OSMODE2.html) · © Gstarsoft Co., Ltd.