To use scripts during import

Format and filter imported data with JavaScript during Data Source Configuration.

  1. Click .
  2. Import a file or database data source.
  3. Double click the data source in the Data Sources panel to configure the data.
  4. Click the Scripts tab in the Data Source Configuration dialog box.
  5. Select Edit.
  6. Using JavaScript, enter your changes or add new scripts.

    The example below shows a simple script that varies the style for streets, based on their values for the property "Elevation."

Additional tips

To use scripts to simplify processes when working with a model, see: To create and run scripts.