Select Feature By Specification Override (Production Mapping)
Resumen
Selects features from feature classes or feature layers with representation rule IDs or calculated field values that do not match a selected visual specification.
Uso
You can add tables, table views, feature classes, or feature layers to the Input Table list. Each entry must have representation rule IDs or calculated field values defined.
You must specify a workspace that contains a VST_Specification table in the Visual Specification table location parameter. The tool uses the VST_Specification table to process the features in the Input Table list.
-
Once you have set Visual Specification table location, the Visual Specifications list will populate with visual specifications. You use these visual specifications to check for specification overrides in the Input Table list.
The tool will select features or rows from items in the Input Table list. Use Invert Selection, Run on calculated representations, and Run on calculated fields to refine the selection.
Sintaxis
Parámetro | Explicación | Tipo de datos |
input_layers [input_layers,...] |
The list of feature layers and feature classes to search for specifications overrides. | Table View |
input_vs_table_location |
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. | Workspace |
input_specifications [input_specifications,...] |
The visual specifications you want to apply to the selected feature layers. | String |
invert_selection | Instructs the tool to switch its selection mode to features that do not have specification overrides.
| Boolean |
run_on_reps | Instructs the tool to process or exclude features in the input_layers list that have calculated representations.
| Boolean |
run_on_fields | Instructs the tool to process or exclude features in the input_layers list that have calculated fields.
| Boolean |
Ejemplo de código
This stand-alone python script demonstrates how to invoke the SelectFeaturesbySpecificationOverride function.
# Name: SelectFeatureBySpecOverride.py # Description: Selects features having representation rules IDs and/or calculated field values that do not match a selected specification # Author: ESRI # Date: April 2010 # Import arcpy module import arcpy # check out a production mapping extension license arcpy.CheckOutExtension("Foundation") # import the production mapping toolbox - you may have to alter this path arcpy.ImportToolbox(r'C:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Production Mapping Tools.tbx') # local variables - paths to data US_Cities = "C:/TestData/Sample/SampleData.mdb/cities" Sample_Specification = "C:/TestData/Sample/SampleData.mdb" # Exec Select Features by Specification Override arcpy.SelectFeaturesbySpecificationOverride_production(US_Cities, Sample_Specification, 'NewVisSpec::Test', "NOT_INVERT", "RUN_ON_REPS", "RUN_ON_FIELDS") # Check the extension license back in arcpy.CheckInExtension("Foundation")