Buffer

The Buffer method creates one or more buffer polygons around one or more selected objects.

Syntax

object. Buffer( NumberBuffers, BufferDistance, CombineOverlapping )

Parameter

Type

Default

Description

NumberBuffers

Integer

required; This specifies the number of buffers to create around each object.

BufferDistance

Double

required; This specifies the buffer distance.

CombineOverlapping

Boolean

True

optional; when set to True, overlapping buffer polygons are combined into a single complex polygon.

Remarks

The first buffer is created at the BufferDistance away from the selection. Subsequent buffers are created at the BufferDistance away from the previous buffer until the NumberBuffers value is reached.

The BufferDistance is in page units when the selected objects exist in the plot document. The BufferDistance is in map units when the selected objects are in a base map layer.

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

Example

This example demonstrates how to create two buffer polygons at a distance of 1200 map units without combining .

Selection.Buffer(NumberBuffers:=2, BufferDistance:=1200, CombineOverlapping:=False)

Used by: Selection Collection