Cadcorp SIS API Methods

CanDoCommand Method

Description

The result depends on the type of the current window, and the selection within the current SWD. In Cadcorp SIS ActiveX Control, the current licence level is also checked.

Syntax

Visual Basic
Public Function CanDoCommand( _
   ByVal comname As String _
) As Integer

Parameters

comname
The command to check.

Return Type

True Delete the items after copying (i.e. Cut).
False Leave the existing items behind (i.e. Copy).

Remarks

Available MD ME MM OD OM OU OV

Group:

Example

sis.CanDoCommand ("AComExtrude")

returns false if the licence level is Manager, true if the licence level is Modeller


Send comments on this topic.

Click to return to www.cadcorp.com

© Copyright 2000-2017 Computer Aided Development Corporation Limited (Cadcorp).