Ortho
Boolean value that toggles Ortho on or off. Checked is true (on) and enables it (highlighting) the Ortho toggle control. Unchecked is false (off) and disables (un-highlights) Ortho. Ortho is also controlled in the Main / Settings window (Figure 1). If Ortho is disabled, then Smart Ortho (right below it) is also disabled, although in the U-T-H Settings Advanced Properties, Smart Ortho will show as enabled even though Ortho is disabled. Ortho may also be toggled on (highlighted) and off (un-highlighted) at the bottom of the PlanSwift main window (Figure 2).
       Figure 1
         Figure 2
API Calls
Delphi
procedure main;
var
planswift: IPlanSwift;
settings: IItem;
property: IPropertyObject
begin
planswift := coPlanSwift.Create();
settings := planswift.getItem('\Settings');
property := planswift.GetProperty('Ortho');
WriteLn(property.RResultAsBoolean())
end
//or
procedure main;
var
planswift: IPlanSwift;
property:IPropertyObject;
begin
planswift := coPlanSwift.Create();
property := planswift.GetProperty('\Settings','Ortho');
WriteLn(property.ResultAsBoolean())
end;
C#
private void Main()
{
PlanSwift planswift = new PlanSwift();
IItem settings = planswift.GetItem(@"\Settings");
IPropertyObject property = settings.GetProperty("Ortho");
console.WriteLn(property.ResultAsBoolean())
}
private void Main()
{
PlanSwift planswift = new PlanSwift();
IPropertyObject property = planswift.GetProperty(@"\Settings","Ortho")
console.WriteLn(property.ResultAsBoolean)
}
VB/VBA (OLE)
Sub main()
Dim planswift = CreateObject("PlanSwift9.PlanCenter")
Dim settings = planswift.GetItem("\Settings")
Dim property = settings.GetProperty("Ortho")
Console.WriteLn(property.ResultAsBoolean());
End Sub
Sub Main()
Dim planswift = CreateObject("PlanSwift9.PlanCenter")
Dim nameProperty = planswift.GetProperty("\Settings","Ortho")
Console.WriteLn(property.ResultAsBoolean)
End Sub
Pascal Scripting (OLE)
begin
settings := getItem('\Settings');
ShowMessage(GetResultAsBoolean(settings,'Ortho'));
end
begin
ShowMessage(GetResultAsBoolean('\Settings','Ortho'));
end
Pascal Scripting
begin
settings := PlanSwift.getItem('\Settings');
property := settings.GetProperty('Ortho');
ShowMessage(property.ResultAsBoolean);
end
begin
property := PlanSwift.GetProperty('\Settings','Ortho');
ShowMessage(property.ResultAsBoolean);
end