Distribute

Distribute has been deprecated. Use Distribute2 instead.

The Distribute method distributes three or more objects horizontally or vertically with equal spacing or overlap within the selected objects' bounding box.

Syntax

object.Distribute( horizontally, )

 

Parameter Type Description
horizontally Boolean required, specifies if objects are distributed horizontally. When set to True, objects are distributed horizontally. When set to False, objects are distributed vertically.

 

Example 1

The following example demonstrates how to distribute objects horizontally.

'Distributes objects horizontally

Selection.Distribute(True)

Example 2

The following example demonstrates how to distribute objects vertically.

'Distributes objects vertically

Selection.Distribute(False)

 

Used by: AutoSelection Collection