Syntax

code

Function: Root: IItem

Description

Returns the Root tree object in PlanSwift.

Code Reference

  • 1. Navigate to Plugin Store->Tool Manager and create a new Plugin
  • 2. Set the plugin type to Script Code and open the Editor
  • 3. Copy Code into the editor
  • 4. press run

code

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

procedure TForm1.psSelectItemDialog(Sender: TObject);

var

  ps: IPlanSwift;

  itm: IItem;

begin

  //Create Planswift Interface

  ps := CoPlanswift.Create;

  //Open Item Dialog and select planswift root

  itm := ps.SelectItemDialog('Select An Item','Select An item',ps.Root.FullPath);

  //Show Selected item Name

  ShowMessage(itm.Name + 'Has been selected');

  //Free Planswift

  ps := nil;

 

end;