Get the current database of file names, and then in our current database is loaded into the data, we test extract some information, such as access to the file name:
// get the file name HTREEITEM hRootDatabase = nullptr; { // Mx :: mcdbCurDwg () returns the current data object //McApDocument* McDbDatabase::GetDocument() const; auto sFileName = Mx::mcdbCurDwg()->GetDocument()->fileName(); // Returns zero length if (!wcslen(sFileName)) return ; hRootDatabase = m_DatabaseInfo.InsertItem(sFileName); }