ScanGeometry Method
Description
Finds Items which satisfy a condition with the current open Item.
Syntax
| Visual Basic |
|---|
Public Function ScanGeometry( _ ByVal list As String, _ ByVal geomTest As Integer, _ ByVal geomMode As Integer, _ ByVal filter As String, _ ByVal locus As String _ ) As Long |
Parameters
- list
- The Named List in which to store any items found.
- geomTest
- The geometry test to use. See Geometry Tests for details.
-
SIS_GT_EQUALSIS_GT_DISJOINTSIS_GT_INTERSECTSIS_GT_TOUCHSIS_GT_CROSSSIS_GT_CROSSBYSIS_GT_WITHINSIS_GT_CONTAINSIS_GT_OVERLAP - geomMode
- The geometry mode to use. See Geometry Tests for details.
SIS_GM_ORIGINSIS_GM_EXTENTSSIS_GM_GEOMETRY - filter
- Optionally specifies a named Filter which Items must pass to be included in the scan.
- locus
- Optionally specifies a named Spatial Filter which Items must pass to be included in the scan.
Return Type
The number of items found, i.e. the number of items placed in the Named List.
Remarks
Only hittable or editable items are scanned.
Available: GEO D OD OM SISpy
Groups:
Example
NItems = sis.ScanGeometry ("Points", SIS_GT_CONTAIN, SIS_GM_GEOMETRY, _
"PointsOnly", "Talbot")
Finds all items that are contained within the current open item that pass the filter PointsOnly and fall within the Talbot Spatial Filter, and places them in the named list Points.