Message 1 of 6

Not applicable
07-16-2019
04:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi! I need to retrieve all assembly codes and descriptions of my model.
As far as I know, each Assembly Code/Description is a ClassificationEntry and those are stored in a KeyBasedTreeEntriesLoadContent object.
I was trying this, but I think I need to initialize the KeyBasedTreeEntriesLoadContent object. The problem is that there's no constructor...
UIApplication uiapp = commandData.Application;
Document doc = uiapp.ActiveUIDocument.Document;
KeyBasedTreeEntriesLoadContent content = null;
ClassificationEntries.LoadClassificationEntriesFromFile(doc.PathName, content);
foreach (ClassificationEntry elem in content.GetEntries())
{
//Does something with each elem
}
Thank you in advance.
Solved! Go to Solution.