Syntax

code

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

Description

Returns the calculated result from the given property.

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

procedure psgetPropertyResult;

var

  ps: IPlanSwift;

  itm: IItem;

begin

  //Create Planswift Interface

  ps := coplanswift.Create;

  //Get the selected Item

  itm := ps.SelectedItem;

  //Show a Message with the property Result of name

  ShowMessage(ps.GetPropertyResult(itm.GUID,'Name'));

  //Free Planswift Interface

  ps := nil;

end;