Sample Custom Editor


This sample demonstrates how to create a custom metadata editor and then substitute your editor for the default editor provided with ArcCatalog. It implements the IMetadataEditor interface and is intended to be used within ArcCatalog. After creating a custom editor, you must register it with the ArcCatalog application. The accompanying document gives you a high-level overview of how this Visual Basic project works.

How to use:
  1. Register the dll on your machine.
  2. Run Categories.exe from %ARCHOME%\bin.
  3. Navigate to the 'Metadata Editors' folder. Select the folder and click Add Object.
  4. Navigate to the compiled sampleCustomEditor.dll and click Open.
  5. The Add Objects dialog box appears listing "simpleEditor", which is checked by default. Click OK.
  6. In the Component Categories Manager, you can see that "customEditor.simpleEditor" has been added to the list of components in the Metadata Editors category. Click OK.
  7. In ArcCatalog, click the Tools menu and click Options. Click the Metadata tab.
  8. Click the Metadata Editor dropdown arrow, click "Sample Custom Editor", then click OK.
  9. Click a shapefile or another data source in the Catalog tree. Click the Metadata tab and then click the Edit Metadata button on the Metadata toolbar. The custom editor appears in place of the Catalog's default metadata editor.


Difficulty: Intermediate

Visual Basic
File Description
simpleEditor.cls Class file implementing the IMetadataEditor interface.
simpleDialog.frm Form containing sample editor dialog.
globals.bas Module defining the global variables used by the project.
customEditor.vbp The project file for the sample editor.
sampleCustomEditor.dll The compiled project.
Overview.htm Document giving a high-level overview of how the pieces of the customEditor project work.

Key CoClasses: XmlPropertySet
Key Interfaces: IPropertySet
Key Members: IPropertySet::GetProperty, IPropertySet::SetProperty