All Cadcorp SIS API Methods

Syntax

Visual Basic
Public Function CreateDoubleBoolean( _
   ByVal list1 As String, _
   ByVal boolop1 As Integer, _
   ByVal list2 As String, _
   ByVal boolop2 As Integer, _
   ByVal boolop3 As Integer _
) As Integer

Parameters

list1
The Named List for the first Boolean operation.
 
boolop1
The Boolean operator for the first Boolean operation.

list2
The Named List for the second Boolean operation.
 
boolop2
The Boolean operator for the second Boolean operation.
 
boolop3
The Boolean operator for the third Boolean operation, which operates on the two Items resulting from the first two Boolean operations.

Remarks

The combination of operations is similar to the following sequence of calls, but it will handle any failures in the intermediate steps: 

EmptyList ("ListTemp")
CreateBoolean (list1, boolop1)
AddToList ("listTemp")
CreateBoolean (list2, bblop2)
AddToList ("listTemp")
CreateBoolean ("listTemp", boolop3)
OpenList ("listTemp", 0)
DeleteItem
OpenList ("listTemp", 1)
DeleteItem
EmptyList ("listTemp")

Note: See CreateBoolean for valid values for boolop1, boolop2 and boolop3.

Available: GEO OD SISpy

Group:

Example

sis.CreateDoubleBoolean "Land", SIS_BOOLEAN_AND, "Road", SIS_BOOLEAN_AND, _SIS_BOOLEAN_OR

Creates an item which is the result of all the common parts in Land and the common parts in Road added together.

The following example (when used with a list containing potentially overlapping Polygon items) creates a MultiPolygon of the overlapping portions, which may be subsequently decomposed into individual Polygon items:

sis.CreateDoubleBoolean ("SelItems", SIS_BOOLEAN_OR, "SelItems", _SIS_BOOLEAN_XOR, SIS_BOOLEAN_DIFF)