SetCopy()

Summary

Copies a selection set.

Syntax

n = SetCopy(string output_set, string input_set)

Argument Contents
output_set The name of the output set to be copied to
input_set The name of the input set to be copied from

Returns

The number of elements in the set.

Notes

  • If the output set does not exist, it is created.

  • If the sets are already the same, nothing is done.

  • All selection commands operate on the current layer.

Example

coords = ClickShape("")
SelectByShape("my_set", "Several", coords)
SetCopy("new_set", "my_set")

Error Codes

Error Type Meaning
Error The input is not valid
NotFound The input set is not found

See Also

Function Summary
SetAND() Selects features that are in all of several input selection sets
SetInvert() Selects all features that are not part of another selection set
SetOR() Selects features that are in any of several input selection sets
SetXOR Selects features that are in only one of several selection sets