| Products: ArcEditor: VB6 Platforms: WindowsRequires: Feature data with one to many relationshipsMinimum ArcGIS Release: 9.0 |
How to use:
- Double-click on the _Install.bat file in the code directory to register the tool. This batch file will register the dll and add the appropriate classes to the ESRI Annotation Expression Property Pages and ESRI Mx Annotation Expression Parsers categories.
- Start ArcMap and add layers to the map that participate in one to many relationships (the layer to label should be the Origin in the relationship).
- Access the Properties dialog for the layer and go to the Labels Tab. Click on the Expression button.
- Select the OneToMany tab on the Expression dialog. Select the relationship to use and the field(s) you want to label with. If you select two fields, then the strings will be separated by " - ". The resulting label will be stack with one line for each related record.
- Click OK to dismiss the EXpression dialog and the Properties dialog. Turn on labeling for the layer.
| frmOneToManyProps.frm | Form containing the controls for setting the labeling parameters. |
| OneToManyLabels.cls | Class implementing the new expression engine for labeling. |
| OneToManyParser.cls | Class for the AnnotationExpressionParser. |
| OneToManyProps.cls | Class implementing the new property page for one to many labeling. |
| OneToManyLabelsPrj.vbp | Visual Basic project file. |
Download the files for all languages
Key CoClasses:LabelEngineLayerProperties, RelationshipClass
Key Interfaces: IAnnotateLayerProperties, IAnnotationExpressionEngine, IAnnotationExpressionParser, IAnnotationExpressionParser2, ICodedValueAttributes, IComPropertyPage, IObjectClass, IRelationshipClass, IRow
Key Members:IAnnotateLayerProperties::FeatureLayer, IAnnotationExpressionEngine::SetExpression, IAnnotationExpressionParser2::FindLabel, IComPropertyPage::SetObjects, IComPropertyPage::Show, IObjectClass::RelationshipClasses, IRelationshipClass::GetObjectsRelatedToObject, IRow::Value
