Syntax

code

Function: OpenJob(JobPath: String): Boolean;

Description

Opens the job specified by JobPath. Returns True if successfull, false if the job could not be found or opened.

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

procedure TForm1.psOpenJob(Sender: TObject);

var

  ps: IPlanSwift;                 

begin

  //Create the PlanSwift Interface

  ps := CoPlanswift.Create;

  //Open The Sample Plan

  ps.OpenJob('Storages\Local\Jobs\Sample Plan');

  // Free the Planswift Interface

  ps := nil;

end;