CombinePolygons

The CombinePolygons method combines the selected polygons to create a union of polygons, intersection of polygons, or difference of polygons.

Syntax

object.CombinePolygons( CombineMethod, KeepOriginalObjects )

Parameter

Type

Default

Description

CombineMethod

SrfCombinePolygonsMethod

required; specify which combination is being created: union, intersection, or difference.

KeepOriginalObjects

Boolean

False

optional; specify whether to keep the original objects or discard the original objects when creating the new polygon(s). True keeps the original polygons.

Remarks

To select objects in a base layer, use the StartEditing method on the base layer Shapes collection.

Example

This example demonstrates how to combine the selected objects into a single polygon while keeping the original objects.

Selection.CombinePolygons(CombineMethod:=srfCombinePolygonsUnion, KeepOriginalObjects=True)

Used by: Selection Collection