Select Features By Specifications Difference (Production Mapping)

License Level:BasicStandardAdvanced


Selects features from feature classes or feature layers with representation rule IDs or calculated field values that do not match a selected visual specification.

Visual specifications use relational queries to apply symbology to many layers and calculate field values. This allows you to use sets of features, selected by attributes, to define representation rules and label expressions. Visual specifications provide a single production workflow to create and maintain symbology and text.



SelectFeaturesBySpecificationsDifference_production (in_layers_or_views, vs_workspace, specifications, select_option)
ParameterExplanationData Type

The list of feature layers, feature classes, tables, or table views to search for specifications differences.

Table View

The location of the workspace that contains the visual specifications table. The VST_Specification table can be stored in a personal, file, or enterprise geodatabase.


The visual specifications you want to apply to the selected feature layers.


Specifies the type of visual specifications difference to use as a selection criteria.

  • BOTHSelect features that have either differences in their calculated representations or calculated fields. This is the default.
  • CALCULATED_REPRESENTATIONS Select all features with differences in calculated representations.
  • CALCULATED_FIELDSSelect all features with differences in calculated fields.

Code Sample

SelectFeaturesBySpecificationsDifference (stand-alone Python script)

The following stand-alone script demonstrates how to use the SelectFeaturesBySpecificationsDifference tool.

# Name:
# Description: Selects features having representation rules IDs and/or calculated field values that do not match a selected specification

# Import arcpy module
import arcpy

# check out a production mapping extension license

# local variables - paths to data
cities = "C:/TestData/Sample/SampleData.gdb/cities"
vs_workspace = "C:/TestData/Sample/SampleData.gdb" 

# Exec Select Features by Specification Override
arcpy.SelectFeaturesbySpecificationsDifference_production(cities, vs_workspace, 'NewVisSpec::Test',"BOTH")  

# Check the extension license back in


Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Requires Production Mapping
ArcGIS for Desktop Advanced: Requires Production Mapping