Syntax

code

Function: GetPropertyResult(ItemPath, PropertyName: String): Variant;


Description

Returns the calculated result from the given property.

Code Reference


code

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

var

  ps: IPlanSwift;

  est: IItem;

  itm: 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', 'Property Result Example Example');

  // Show the Property Result as variant

  ShowMessage('Property Formula: ' + VarToStr(itm.GetPropertyResult('Qty')));

  // Free Planswift

  ps := nil;