To open any link in a new tab, preserving your position in the current article, just hold down the <CTRL> key on your keyboard before clicking the link or click using your mouse wheel.

NoAskBreakInheritance

NoAskBreakInheritance



Boolean value that allows selecting whether a confirmation box should be displayed asking the user to confirm an Inheritance Break. Checking the box (true) will cause the confirmation box not to appear. Unchecking the box (false) causes the confirmation box to appear. This boolean value is also controlled when a template's advanced properties are edited in the Settings / Notifications window (Figure 1).


To see a confirmation box:

Click on the Estimating tab on the Main Ribbon menu.

Double click on an Estimating template (Figure 2) to show the Template's Properties window

Click on Advanced. 

In the Advanced window (Figure 3), click on the formula cell for the Linear Total takeoff and wait a second

Click on the same cell again. This opens the window asking Editing this property will cause it to no longer be inherited. Do you want to continue?

Click on the Do not ask again box in order not to be asked the question again: Clicking on the Do Not ask again box sets the NoAskBreakInheritance boolean value to true.


           Figure 1



               Figure 2



             Figure 3


API Calls

Delphi

Using IItem Object Model
procedure main; 
var
 planswift: IPlanSwift;
 settings: IItem;
 property: IPropertyObject 
begin
 planswift := coPlanSwift.Create();
 settings := planswift.getItem('\Settings');
 property := planswift.GetProperty('NoAskBreakInheritance');
 WriteLn(property.RResultAsBoolean()) 
end
Using PlanSwift Object Model
//or 
procedure main; 
var
 planswift: IPlanSwift;
 property:IPropertyObject; 
begin
 planswift := coPlanSwift.Create();
 property := planswift.GetProperty('\Settings','NoAskBreakInheritance');
 WriteLn(property.ResultAsBoolean()) 
end;

C#

Using IItem Object Model
private void Main()
{
	PlanSwift planswift = new PlanSwift();
	IItem settings = planswift.GetItem(@"\Settings");
	IPropertyObject property = settings.GetProperty("NoAskBreakInheritance");
	console.WriteLn(property.ResultAsBoolean())
}
Using PlanSwift Object Model
private void Main()
{
	PlanSwift planswift = new PlanSwift();
	IPropertyObject property = planswift.GetProperty(@"\Settings","NoAskBreakInheritance")
	console.WriteLn(property.ResultAsBoolean)
}


VB/VBA (OLE)

Using IItem Object Model
Sub main()
    Dim planswift = CreateObject("PlanSwift9.PlanCenter")
    Dim settings = planswift.GetItem("\Settings")
    Dim property = settings.GetProperty("NoAskBreakInheritance")
    Console.WriteLn(property.ResultAsBoolean());
End Sub
Using PlanSwift Object Model
Sub Main()
    Dim planswift = CreateObject("PlanSwift9.PlanCenter")
    Dim nameProperty = planswift.GetProperty("\Settings","NoAskBreakInheritance")
    Console.WriteLn(property.ResultAsBoolean)
End Sub


Pascal Scripting (OLE)

Item Object Model
begin
    settings := getItem('\Settings');
    ShowMessage(GetResultAsBoolean(settings,'NoAskBreakInheritance'));
end
Root Object Model
begin
   ShowMessage(GetResultAsBoolean('\Settings','NoAskBreakInheritance'));
end


Pascal Scripting

Item Object Model
begin
    settings := PlanSwift.getItem('\Settings');
    property := settings.GetProperty('NoAskBreakInheritance');
    ShowMessage(property.ResultAsBoolean);
end
Using the PlanSwift Object Model
begin
    property := PlanSwift.GetProperty('\Settings','NoAskBreakInheritance');
    ShowMessage(property.ResultAsBoolean);
end



Copyright 2023 ConstructConnect