Syntax

code

Function: IItem.GUID: String;


Description

Returns the GUID for the Item.


Code Reference


code

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

var

  ps: IPlanSwift;

  est: IItem;

  itm: IItem;

  aitm: 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', 'GUID Example');

  // Get the Item by Guid

  aitm := est.GetItemByGUID(itm.GUID);

  // Show Item

  ShowMessage(aitm.Name);

  // Free Planswift

  ps := nil;

end;