ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Creating VBScript expressions for calculated representations

Available with Production Mapping license.

Expressions created using VBScript allow you to set conditions that determine the way symbols are represented based on a range of attributes or associated table values. For example, features with an FCsubtype value of 0 can be represented with one symbol, and features with any other subtype can be represented with another symbol:

if [FCsubtype] = 0 then
  reprule = "ESRI.Style::On Point"
else
  reprule = "ESRI.Style::Buffer Hatch"
end if

Generate = reprule
End Function
  1. Start ArcMap.
  2. Load data in the map.
  3. Right-click the layer in the table of contents for which you want to create calculated representations and click Properties.

    The Layer Properties dialog box appears.

  4. Click the Calculated Representations tab.
  5. Click the Expression drop-down arrow and choose Edit Expression.

    The Expression Parser dialog box appears.

    Expression Parser with information for calculated representations
  6. Double-click the field you want to use for the parameter.
  7. If you are using an array, define the range of values to include in the array.
  8. Define the style and symbol name to use for the representation.
  9. Repeat steps 6–8 for each condition you want to add for the calculated representation.
  10. Click Verify.
  11. Fix any errors found in the expression.
  12. Repeat steps 10–11 until there are no errors.
  13. Click OK.

    The Expression Parser dialog box appears.

  14. Click OK.

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal