Integer value returns an ANSI key code (default code 119115, the number w??, shows F3 F4 in hotkey window) for the Toggle Digitizer Angle Snap (Ortho), shown in Figure 1) or also called Ortho Snap to Angles (Figure 2). Figure 1 shows where this hotkey value ). This is controlled in the Main Menu / Settings / Hotkeys windowSnapping window (Ortho Snap to Angles, Figure 2) and at the bottom of the PlanSwift window (Figure 3).
API Call:
Code Block | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
private void Main() { PlanSwift planswift = new PlanSwift(); IItem settings = planswift.GetItem(@"\Settings"); IPropertyObject property = settings.GetProperty("ToggleOrthoHotkey"); console.WriteLn(property.ResultAsInteger()) } //or private void Main() { PlanSwift planswift = new PlanSwift(); IPropertyObject property = planswift.GetProperty(@"\Settings","ToggleOrthoHotkey") console.WriteLn(property.ResultAsInteger) } |
...
Code Block | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
begin settings := PlanSwift.getItem('\Settings'); property := settings.GetProperty('ToggleOrthoHotkey'); ShowMessage(property.ResultAsInteger); end //or begin property := PlanSwift.GetProperty('\Settings','ToggleOrthoHotkey'); ShowMessage(property.ResultAsInteger); end //or begin settings := getItem('\Settings'); ShowMessage(GetResultAsInteger(settings,'ToggleOrthoHotkey')); end //or begin ShowMessage(GetResultAsInteger('\Settings','ToggleOrthoHotkey')); end |
Figure 1
Figure 2
Figure 3