.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get names of all dictionaries under parent

2 REPLIES 2
Reply
Message 1 of 3
odoshi
235 Views, 2 Replies

Get names of all dictionaries under parent

I have a dictionary under the NOD which in turn has several other dictionaries. I'd like to get the names of each to add to a list. Does anyone have a snippet that demonstrates this?

All I have to start with is the Name of the dictionary under the NOD. The child dictionary names are unknown, as well as their ObjectId's.

Thx.
Mike Caruso
Autodesk Certified Instructor 2014
AutoCAD/Civil 3D Autodesk Certified Professional 2014, 2015, 2018
www.whitemountaincad.com
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: odoshi

DBDictionary dict = // your DBDictionary

List names = new List();
foreach( DBDictionaryEntry entry in dict )
names.Add( entry.Key );

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

wrote in message news:5717886@discussion.autodesk.com...
I have a dictionary under the NOD which in turn has several other dictionaries. I'd like to get the names of each to add to a list. Does anyone have a snippet that demonstrates this?

All I have to start with is the Name of the dictionary under the NOD. The child dictionary names are unknown, as well as their ObjectId's.

Thx.
Message 3 of 3
odoshi
in reply to: odoshi

Figures it was something simple. Thanks!
Mike Caruso
Autodesk Certified Instructor 2014
AutoCAD/Civil 3D Autodesk Certified Professional 2014, 2015, 2018
www.whitemountaincad.com

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost