Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
languagec#
themeRDark
firstline1
titleC#
linenumberstrue
collapsetrue
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
languagedelphi
themeRDark
firstline1
titlePlanSwift Scripting
linenumberstrue
collapsetrue
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


Image RemovedImage Added

          Figure 1


             Figure 2


Image Added

           Figure 3