How to use
See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.
Building the component
- Open the solution file and build the project. This automatically registers the component.
Configuring the RelatedFeatureCN and RelatedFeatureOID attributes on the schematic feature class
- Start ArcCatalog.
- Browse to a geodatabase that contains a schematic dataset.
- Right-click the schematic dataset entry and click Edit. The Schematic Dataset Editor starts.
- In the Dataset Editor tree window, right-click the schematic feature class entry for which you want to define an association and click New Attribute.
- Type RelatedFeatureCN as the attribute name.
- Configure the schematic attribute parameter so it returns the name of the GIS feature class that contains the desired associated GIS features.
- Check On Start Editing in the Evaluation mode section.
- Click OK. The RelatedFeatureCN attribute creation is complete.
- Right-click the schematic feature class entry and click New Attribute.
- Type RelatedFeatureOID for the attribute name.
- Configure the schematic attribute parameter so it returns the ObjectID of the GIS feature.
- Check On Start Editing in the Evaluation mode section.
- Click OK. The RelatedFeatureOID attribute creation is complete.
- Click Save on the Schematic Dataset Editor toolbar and close the Schematic Dataset Editor.
Testing the newly specified associations
- Start ArcMap with a new empty map.
- Enable the Schematic Features Associations with Geographic Features (VB .NET) or Schematic Features Associations with Geographic Features (C#) extension using the Customize>Extensions menu.
- Add the GIS features in the active data frame.
- Open a diagram containing schematic features for which new associations have been configured, or generate a diagram containing such schematic features.
- Start an edit session on the schematic diagram.
- Click the Identify tool and click any schematic feature that should be impacted by this configuration change. In the Identify window, under the schematic feature branch, a new branch shows the newly associated GIS feature.
- Select any schematic feature that should be impacted by this configuration change and click Propagate Schematic Selection To Map. The associated GIS feature is selected on the map.
ElementFeatureAssociation.vb | Initializes the associations on the AfterLoadDiagram schematic event. |
Config.esriaddinx | Add-in declarations in XML. |
ElementFeatureAssociation.cs | Initializes associations on the AfterLoadDiagram schematic event. |
Config.esriaddinx | Add-in declarations in XML. |
Download the files for all languages
See Also:
ISchematicInMemoryFeatureLinkerEdit interfaceAfterLoadDiagram Schematic event
ISchematicInMemoryDiagram interface
ISchematicInMemoryFeature interface
Development licensing | Deployment licensing |
---|---|
ArcGIS for Desktop Basic: Schematics | ArcGIS for Desktop Basic: Schematics |
ArcGIS for Desktop Advanced: Schematics | ArcGIS for Desktop Standard: Schematics |
ArcGIS for Desktop Standard: Schematics | ArcGIS for Desktop Advanced: Schematics |