DesignSeries.pngCreating Custom Modification Scripts

Custom modification scripts can select multiple objects and modify their common properties and attributes in a single operation. Objects can be selected regardless of layer, layer scale, class, or current selection or visibility status. Several levels of selection criteria make it easy to target specific object sets for modification. No scripting knowledge is necessary.

To create a custom modification script:

  1. Select Tools > Custom Modification.

  2. The Custom Modification dialog box opens.

  3. Select the desired criteria options. The number of objects that meet the criteria displays.

  4. When symbols are selected as the criteria and symbol folders are present in the file, click the button available near the symbol type to open the Select Symbol dialog box. Select the specific symbol, and then click OK to return to the Custom Modification dialog box.

  5. Click OK.

  6. If the Create Script option is chosen, when prompted, name the script containing the modification commands. The script then displays in a script palette, and can be double-clicked to perform the operation. See Creating and Editing Script Palettes and Scripts.

  7. If the Execute Immediately option is chosen, the Properties dialog box opens.

  8. The common properties of the selected objects are displayed and can be modified. Similar to a multiple selection, if the parameter settings for the objects are different, they display as a blank list or as a check box of indeterminate state. Parameter edits apply to all selected objects when in multiple edit mode.

    Properties.png 

  9. To edit the object attributes, click Attributes.

  10. The Attributes dialog box opens. Edit the available attributes of the selected objects, and click OK. See The Attributes Palette for more information.

  11. Click OK to return to the drawing.

~~~~~~~~~~~~~~~~~~~~~~~~~

Using Scripts

Running Scripts

Was this page helpful?

vectorworks.net