ArcGIS Desktop

  • Documentation
  • Support

  • 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 for 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

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Calculate Representation Fields

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Defense Mapping configuration tool that calculates representation symbology to the input features. This tool calculates symbology for many layers and links feature attributes to representation rules and label expressions.

Usage

  • You can calculate multiple visual specifications to multiple input feature layers.

  • The Input Visual Specifications Workspace contains the visual specifications you can apply to input features.

  • This tool calculates fields for the input features. The number and names of the fields will vary but will include the following:

    • A field that holds the representation rule number. This is known as the representation rule field.
    • An Override field associated with the representation to store symbol exception information. The Override field contains exception information on an individual representation.
    • An optional new or existing field that holds calculated values. The Calculated Values field contains the value that is produced as part of the selected specification.

  • The Representation Rule field contains the number of the symbol being used for the feature class in association with feature class representations.

Syntax

CalculateRepresentationFields_defense (in_features, in_visual_spec_workspace, in_specs)
ParameterExplanationData Type
in_features
[in_features,...]

The feature classes for which you want the visual specifications field calculated.

Feature Layer
in_visual_spec_workspace

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

Workspace
in_specs
[in_specs,...]

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

String

Code sample

CalculateRepresentationFields example (Python window)

The following code example demonstrates how to execute the CalculateRepresentationFields function.

# Set up input features, visual specification database, and specification
features = "C:/Example/example.gdb/MGCP/AerofacA;C:/Example/example.gdb/MGCP/AerofacP;C:/Example/example.gdb/MGCP/AgristrA;C:/Example/example.gdb/MGCP/AgristrP"
visualSpecification = "C:/Program Files (x86)/ArcGIS/EsriDefenseMapping/Desktop10.4/Mgcp/Cartography/Symbology/MGCP_TRD_4_3_MTM_Visual_Specification.mdb"
specification = "'MGCP_50K :: MGCP TRD 4.3 Visual Specification for MGCP Topographic Map (MTM)'"

# Running Calculate Representation Fields tool
arcpy.CalculateRepresentationFields_defense(features, visualSpecification, specification)

Environments

  • Current Workspace

Licensing information

  • ArcGIS Desktop Basic: No
  • ArcGIS Desktop Standard: Requires Defense Mapping
  • ArcGIS Desktop Advanced: Requires Defense Mapping

Related topics

  • An overview of the Symbology toolset

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

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