Code Gallery
Geodatabase Domain Tools
|
This sample shows how the Geodatabase API can be leveraged to provide greater control over domains than what is possible with ArcCatalog out-of-the-box. It contains a custom geodatabase property page, written in C#, which when installed will appear alongside the existing Domains property page. The page allows ArcCatalog users to discover the owners of domains (for ArcSDE geodatabases), sort and reorder coded value domains, find and optionally remove references to domains, and export domains to XML workspace documents.
|
Report Inappropriate Content: This Code Gallery is intended for the free exchange of code related to ESRI software products. Let us know if this entry is inappropriate (e.g., a download for a commercial product).

Problem with installation posted by u0281276 on May 22, 2009 8:53 AM
I followed the installation instructions and don't see the new tab in the Geodatabase Properties dialog. I have .NET 3.5 and just installed ArcGIS Desktop 9.3.1. Any ideas? I wasn't sure where to put the .dll so I just put it in a folder on my computer and ran the regasm tool from there. I said that the "Types registered successfully.
error in readme.txt posted by ciava.at on May 22, 2009 10:52 AM
regasm GdbDomainTools.dll /codebase The /codebase parameter is an optional parameter that adds information to the registry specifying the path on disk of the assembly. If the component is not to be deployed to the global assembly cache (GAC), this option will be required for ArcGIS to find your component successfully; if the component is installed to the GAC, the option is not required. Regasm has many other options; or project sign: regasm GdbDomainTools.dll gacutil -i GdbDomainTools.dll
That worked posted by u0281276 on May 22, 2009 1:21 PM
Thanks ciava.at. After adding the "/codebase" to the end of the command I now see the new tab in the dialog box. Maybe the readme needs to be clarified?
/Codebase issue posted by mackayj80 on May 26, 2009 11:38 AM
Good catch, I overlooked that flag when writing the ReadMe. I've updated the text and included a note about a known limit of the implementation - you can't search for domain references if you don't have permissions to open every dataset (as can happen to non-admin ArcSDE users).
Reorder command doesn't work ... posted by glavenu on Jun 15, 2009 7:42 AM
If the "Description" of a domain value contains SQL special character like "'", the SQL Request to reorder domain values doesn't work. I didn't try all other functions, but this issue should appear in all functions that need to update the database with SQL. Gaetan LAVENU ESRI France
path for RegAsm unexpected at this time posted by atreuer on Jun 15, 2009 10:43 AM
I am having a problem getting the command to work and keep getting the above message. Any ideas what I am doing wrong?
If you would like to post a comment, please login.