Syntax

code

Procedure: IPlanswift.CancelTool;

Description

Cancels the currently active tool in PlanSwift

Code Reference

  • 1. Create a New Forms Application
  • 2. Add a Planswift to the References (Planswift_Tlb)
  • 3. Add a button to the form
  • 4. copy code below to the onclick event of the button
  • 5. Open Planswift and select a digitizer object
  • 6. Compile and run

code

1

2

3

4

5

6

7

8

9

var

ps:IPlanSwift;

begin

   ps := coPlanswift.Create; 

   ps.cancelTool;

   ps := nil;

end;

    

end;