Creating Custom Selection Scripts

Custom selection scripts allow objects in the current file to be selected or deselected according to user-specified criteria. The wide array of options in the command allows for very specific filtering and selection according to the defined selection requirements. No scripting knowledge is necessary.

The layer options must be set to Show/Snap/Modify Others to select objects on another layer.

To create a custom selection script:

  1. Select Tools > Custom Selection.

  2. The Custom Selection dialog box opens. Choose the desired options for the selection operation.

  3. Click Criteria to specify the selection criteria for the operation.

  4. The Criteria dialog box opens.


  5. Choose the desired criteria options.

  6. The available operators depend on the type of parameter. Text parameters can use the * symbol to represent any set of characters, and the ? to represent any single character.

  7. The number of objects in the file that meet the criteria displays.

  8. Specify additional options, adding a new row of filter choices by clicking More Choices. To remove the most recently added row, click Fewer Choices.

    Specify whether to also include objects that are part of symbols, plug-in objects, or viewport annotations.

  9. Click OK.

If the Execute Immediately option is chosen, the selection operation is now performed. If one of the create script options is chosen, when prompted, name the script palette (if none exists) or select an existing script palette, and name the selection operation script. The script is saved in the script palette, and can be run as described in Running Scripts.


Entering Formulas in Worksheet Cells

Using Scripts

Running Scripts

Was this page helpful?