It helps to use the object browser, because it will
show you what interfaces a given object supports.
DBDictionary supports the IDictionary interface,
which means:
DBDictionary dict = // assign to a DBDictionary
string[] names = new string[dict.Count];
((IDictionary) dict).Keys.CopyTo(names, 0);
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com
wrote in message news:5333385@discussion.autodesk.com...
Hello All,
I have a custom dictionary attached to a drawing into which I have several Xrecords attached, each with a different name. I am trying to find a way to get the name of each Xrecord out of the dictionary and into an array. The GetAt function assumes you know the name, so that's no use. Then I thought maybe use the GetEnumerator function but DBDictionaryEnumerator doesn't seem to be exposed! Can any one offer any advice?
Regards
Martin Duke