GstarCAD 2027 · System Variables
System Variables > O System Variables > OSMODE2
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. |
Article ID: 3129
Created: September 26, 2026
Last Updated: September 25, 2026
Author: kbadmin
Online URL: https://kb.gstarcad.com.my/article/osmode2-system-variable-gstarcad-2027-3129.html