Creating a Config.xml for My Add-Ons

504
4
10-24-2013 08:00 AM
Highlighted
New Contributor
I'm using EasriRegAsm to register my add on dll (written in Delphi) which works fine but in the ARC Categories program the objects are listed with empty names. I've unzipped the ECFG file that's created but can't find any documentation on the Config.xml file that would allow me to add my category names. Can someone point me in the right direction?

Thanks
Reply
0 Kudos
4 Replies
Highlighted
Regular Contributor III
I don't think that the format is documented.

ESRIRegAsm provides several creation options which you can see by running it from the command line with no options or file.  In particular you probably want the /f option.

http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000004n6000000

The other thing that you can do is to reverse engineer this by looking at other ecfg files.  This is what I have done in the past.  Just look on your hard drive for ecfg files.  If you can't find one then simply generate one by creating an add-in using Visual Studio.
Reply
0 Kudos
Highlighted
New Contributor
Thanks, my plan was to use the /f option but I still need to know what I need to put into the xml file. The only ECFG files I have were generated by EsriRegAsm which doesn't help. Here's what I extracted:

<?xml version="1.0"?>
<ESRI.Configuration ver="1">
<Categories>
  <Category CATID="{B56A7C42-83D4-11D2-A2E9-080009B6F22B}">
   <Class CLSID="{AEDF990E-5F53-408D-961B-1789073DE1CA}"/>
  </Category>
  <Category CATID="{B56A7C4A-83D4-11D2-A2E9-080009B6F22B}">
   <Class CLSID="{E9E81DA7-A70D-43C1-94EA-89C345ED29CE}"/>
  </Category>
</Categories>
</ESRI.Configuration>

Just by guess I added an id property to the Category node but that didn't work.

It did raise a question about the location of the ECFG files. I have installed my add on's to Desktop 10.2 but the only ECFG files are listed under Desktop10.1 even though I have folders for 10.0 and 10.2. Copying the files to Desktop10.2 didn't make any difference.
Reply
0 Kudos
Highlighted
Regular Contributor III
The link that I provided had the following example:

<?xml version="1.0"?>
<Categories ver="1">
  <Category CATID="{62C8FE65-4EBB-45E7-B440-6E39B2CDBF29}">
    <Class CLSID="{1502B6C9-B57C-36E0-BCC7-C4CFDD058082}"/>
  </Category>
</Categories>

The category identifiers are documented by ESRI.  See:

C:\Program Files (x86)\ArcGIS\DeveloperKit10.2\include\CatIDs\ArcCATIDs.h

The class identifier is yours.
Reply
0 Kudos
Highlighted
New Contributor
Okay, tried a couple of variations but still no luck. Hopefully this will eventually be documented.
Reply
0 Kudos