And Command
Input: One or two DV layers (containing polygons)
Output: DV layer (containing polygons)
Description: Creates and returns a DV layer that contains geometry generated on the overlap of original geometry on the input layer(s). This is a symmetric operation. The order of the input layers does not change the results.
- Single input layer functionality uses raw (un-merged)
geometry so that overlaps are not removed.

- Two input layer functionality merges geometry
of input layers that are imported. From the following example the two
rectangles on layer A are merged into one polygon before doing the And
operation. The result of the And is one polygon.

- If the input layers are not imported (they are
created within DV), two input layer functionality uses the geometry “as
is”. From the following example the two rectangles on layer A are not
merged before doing the And operation. The results of the And are two
overlapping polygons.

Rule Set Example (JScript):
var layer1 = DVChecker.ImportLayer("trace");
var layer2 = DVChecker.ImportLayer("ground");
var andLayer = DVChecker.And(layer1);
var andLayer2 = DVChecker.And(andLayer);
var andLayer3 = DVChecker.And(layer1, layer2);