Domain Sort



Description:

This tool allows the specified coded-value domain to be sorted. The user has the options of specifying whether the sort will be ascending or descending and on the Code or Description values of the domain.
Products:
ArcEditor: VB6

Platforms: Windows

Requires: A geodatabase with domains defined in it

Minimum ArcGIS Release: 9.0

How to use:
  1. Browse and select the DomainSort.dll using the 'Add From File' button on the customization dialog in ArcCatalog.
  2. From the 'Developer Samples' commands category, add the 'DomainSortCmd' command to an existing toolbar or the context menu for a geodatabase.
  3. Use ArcCatalog to browse to the database you wish to sort a domain from.
  4. Click on the command to bring up the dialog, and make choose the parameters for the sort.
  5. Perform the sort.

Download the VB6 files
frmDomainSort.frm Form containing the dialog and code for sorting a domain.
DomainItem.cls Custom class for holding the values of a domain item during the sort.
DomainSortCmd.cls Class containing the code for sorting a domain.
DomainSort.vbp Visual Basic project.
DomainSort.dll Visual Basic project executable

Download the files for all languages



Key Libraries: Geodatabase
Key CoClasses:CodedValueDomain, Workspace
Key Interfaces: ICodedValueDomain, IWorkspaceDomains2
Key Members:ICodedValueDomain::AddCode, ICodedValueDomain::DeleteCode, IWorkspaceDomains2::AlterDomain