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.

Procedures - Delete - FD

Procedures - Delete

Deletes the Item and its children from the system.

Syntax:

Procedure: Delete;

API Calls

Delphi

Using IItem Object Model
var
  ps: IPlanSwift;
  est: IItem;
  itm: IItem;
  rslt: Boolean;
  sect: IItem;
begin
//create the Planswift Interface
ps := coPlanswift.Create;
//Get the Estimating tab
  est := ps.GetItem('Job\Takeoff');
  //Create a new Item
  itm := est.NewItem('Area', 'psDelete Example');
  //Show the property dialog box
  rslt := itm.Edit(true);
  //if ok pressed in dialog box then
  if rslt then begin
    //Create a new Section
    sect := itm.NewSection('psDelete Section');
    //Start Recording
    sect.DoRecord;
  end else begin
    //Eles delete the item
    itm.Delete;
  end;
  //Free Planswift
  ps := nil;
Using PlanSwift Object Model
 

C#

Using IItem Object Model
 
Using PlanSwift Object Model
 

VB/VBA (OLE)

Using IItem Object Model
 
Using PlanSwift Object Model
 

Pascal Scripting (OLE)

Item Object Model
 
Root Object Model
 

Pascal Scripting

Item Object Model
 
Using the PlanSwift Object Model
 


Copyright 2023 ConstructConnect