Syntax

code

Function: IItem.CanRecord: Boolean;


Description

Returns true if the item is record-able item.


Code Reference


code

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

var

  ps: IPlanSwift;

  itm: IItem;

begin

  // Create Planswift Interface

  ps := coPlanswift.Create;

  // Get the Selected item

  itm := ps.SelectedItem;

  // Chewck if the item can Record

  if itm.CanRecord then

    // Start Recording if can

    itm.DoRecord

  else

    // Show a message that it can not record

    ShowMessage('Item is not a Digitizing Object');

  ps := nil;