- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, all!
I've been struggling get a CSV file from LookUp Table in specific Family. I thought it is easy but there are always "file access exception" when using FamilySizeTableManager.ExportSizeTable().
here's my code.
public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
{
//
//.......
//
FamilySymbol fs = (elem as FamilyInstance).Symbol;
FamilySizeTableManager fstm = FamilySizeTableManager.GetFamilySizeTableManager(doc, fs.Family.Id);
using (Transaction trans = new Transaction(doc))
{
trans.Start("Start");
if (fstm.ExportSizeTable("Really exist name in Lookuptable", AssemblyDirectory))
{
// success
}
else
{
// fail.
}
trans.Commit();
}
}
Are there anyone who already encountered and solved this issue?
thank you!
Solved! Go to Solution.