This document is archived and information here might be outdated. Recommended version. |
Provides access to members that control the behavior and properties of a feature class representation.
Use IRepresentationClass to access a feature class representation to either view, copy, or make changes to RepresentationRules, GraphicAttributes and RequireShapeOverride properties.
Name | Description | |
---|---|---|
FeatureClass | Feature class associated with this representation class. | |
GetRepresentation | Returns the representation of a given feature. | |
GraphicAttributes | General attributes defined at the representation class level. | |
ID | ID of the representation class. | |
OverrideFieldIndex | Field index of the override field. | |
PrepareFilter | Adds the fields used by overrides to the query filter. | |
RepresentationRules | RepresentationRules Property. | |
RequireShapeOverride | Indicates if a shape override is required for feature representations. | |
RuleIDFieldIndex | Field index of the Rule ID field. |
CoClasses and Classes | Description |
---|---|
RepresentationClass | A Feature Class Representation object. |
IRepresentationClass interface has properties and methods used to manage the ReresentationClass object.
A RepresentationClass is a feature class that has been enabled with representation capability. Creating a new feature class representation will result in addition of two new fields corresponding to the RuleID and Override fields. RuleID fIeld stores ID values of representation rules which are used to represent individual feature representations. Override field contains information about representation overrides. Default values for overrides are set to null. RuleIDFieldIndex and OverrideFieldIndex properties return field indices for RuleID and Override fields respectively.
FeatureClass property returns a reference to the feature class that the representation class belongs to. A representation class cannot exist on its own. Deleting a feature class will delete all representation classes associated with it. Drop Representation geoprocessing tool can be used to remove feature class representations.
RepresentationRules property can be used to access the collection of representation rules present for a representation class or to create a new representation rules object from scratch. A single representation class can have multiple representation rules.
GraphicAttributes property returns a reference to the graphic attributes present for the representation class namely, visibility. To make changes to this property use IGraphicAttributes interface. Changes made at representation class level are applied to all representations. Individual representation's visibility property can also be overriden using IRepresentation::Value property.
Use GetRepresentation method to get access to representations for individual features within the feature class with respect to a specific MapContext object listed in the esriDisplay library. A MapContext object is defined using Spatial Reference and Reference Scale information.
PrepareFilter method prepares a query filter by adding RuleID, Override and explicit override fields as the sub-fields.
ID property returns the unique identifier that identifies the representation class in a geodatabase.
Use IRepresentationWorkspaceExtension::OpenRepresentationClass method to open a specific representation class given its name within a workspace.