Revit类别
Document doc = commandData.Application.ActiveUIDocument.Document;
string cats = "";
foreach (Category item in doc.Settings.Categories)
{
cats += item.Name + Environment.NewLine;
}
System.IO.File.AppendAllText(Environment.CurrentDirectory + "\\" + DateTime.Today.ToString("yyyyMMdd") + "\\Categories.txt", cats);