All Cadcorp SIS API Methods

CreateLocusFromItem Method

Description

Creates a named Spatial Filter in a Named Object Library from the current open Item, replacing any existing Spatial Filter with the same name.

Syntax

Visual Basic
Public Function CreateLocusFromItem( _
   ByVal locus As String, _
   ByVal geomTest As Integer, _
   ByVal geomMode As Integer _
) As Integer

Parameters

locus
The named Spatial Filter to create, or replace.
 
geomTest
The geometry test to use. See Geometry Tests  for details.
SIS_GT_EQUAL
SIS_GT_DISJOINT
SIS_GT_INTERSECT
SIS_GT_TOUCH
SIS_GT_CROSS
SIS_GT_CROSSBY
SIS_GT_WITHIN
SIS_GT_CONTAIN
SIS_GT_OVERLAP
 
geomMode
The geometry mode to use. See Geometry Tests for details.
SIS_GM_ORIGINitems whose origin (always a single point) must pass the testing method with the selected item
SIS_GM_EXTENTSitems whose extents (always a rectangle) must pass the testing method with the selected item
SIS_GM_GEOMETRYitems whose geometry must pass the testing method with the selected item

Remarks

Available: GEO D OM OD SISpy

Group:

Example

sis.CreateLocusFromItem "Scheme20", SIS_GT_CONTAIN, SIS_GM_GEOMETRY