Versions Compared

Key

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

DoRecord


...

Begins recording digitizer points for the Item. Returns False if no points are recorded.

...

Procedure: DoRecord: Boolean;


API

...

Calls

Delphi

Code Block
languagedelphi
themeRDark
firstline1
titleUsing PlanSwift Object Model
linenumberstrue
collapsetrue
// PlanSwift Code:


If Item.CanRecord Then
  Result := Item.DoRecord
Else
  Result := False;


// FreshDesk Code:


var  
ps: IPlanSwift;
  est: IItem;
  itm: IItem;
  sect: IItem;
begin
  // Create Planswift Interface
  ps := coPlanswift.Create;
  // Get the Estimating tab
  est := ps.GetItem('Job\Takeoff');
  // Create a new Item
  itm := est.NewItem('Area', 'DoRecord Example');
  // Create a new Section
  sect := itm.NewSection('DoRecord Section');
  // Start Recording section on current page
  sect.DoRecord;
  // Free Planswift
  ps := nil;


C#

Code Block
languagec#
themeRDark
firstline1
titleUsing IItem Object Model
linenumberstrue
collapsetrue
public class PlanswiftApi
{
    private PlanSwift Planswift { get; }
    public PlanSwiftApi()
    {
        Planswift = new PlanSwift();
    }
}


Code Block
languagec#
themeRDark
firstline1
titleUsing PlanSwift Object Model
linenumberstrue
Coming soon


VB/VBA (OLE)

Code Block
languagevb
firstline1
titleUsing IItem Object Model
linenumberstrue
Coming soon


Code Block
languagevb
firstline1
titleUsing PlanSwift Object Model
linenumberstrue
Coming soon