Work with Selection Sets

A selection set can consist of a single object, or it can be a more complex grouping: for example, the set of objects of a certain layer.

Defining a selection set is a two-step process. First, you must create a new selection set and add it to the SelectionSets collection. Once created, you then populate the selection set with the objects you want to process.