All Cadcorp SIS API Methods

CreateGroupFromItems Method

Description

Creates a Groupitem from the items in a Named List, optionally deleting the items in the Named List.

The current axes will be used as the origin.

Syntax

Visual Basic
Public Function CreateGroupFromItems( _
   ByVal list As String, _
   ByVal bDelete As Integer, _
   ByVal groupType As String _
) As Integer

Parameters

list

The Named List containing the items to be grouped.

 
bDelete
True Delete the items after grouping
False Leave the existing items behind
 
groupType

The type or class, of group to create; the group class having been registered using RegisterGroupType.

Remarks

Available: GEO D OD OM SISpy

Group:

Example

sis.CreateGroupFromItems ("StationList", True, "Station")

Creates a group made up from the items in the list StationList. These items are then deleted.