Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, guys. I want to get the full path of every dwg files from a sheetset. What I've tried was as following:
// Create a new SheetSetManager
AcSmSheetSetMgr sheetSetManager = new AcSmSheetSetMgr();
// Declare a AcSmDatabase variant
AcSmDatabase acSheetSetDb = null;
try
{
// Get the database of specified dst file
acSheetSetDb = sheetSetManager.OpenDatabase(dstFilePath, false);
}
catch (System.Exception ex)
{
throw new System.Exception(ex.ToString());
}
List<string> dwgFilePathList = new List<string>();
try
{
acSheetSetDb.LockDb(acSheetSetDb);
// Get the sheet set object
AcSmSheetSet acSheetSet = acSheetSetDb.GetSheetSet();
// Get drawings' title sorted by subcategory
dwgFilePathList = ProcessEnumerator(acSheetSet.GetSheetEnumerator());
}
catch (System.Exception)
{
throw;
}
finally
{
acSheetSetDb.UnlockDb(acSheetSetDb, true);
sheetSetManager.Close(acSheetSetDb);
}
By doing this, I can only get the file name of dwg file(like "firstFloor.dwg"). Is there anyone know how to get the full path? Thanks a lot.
Solved! Go to Solution.