public static void listAllFamilies(ExternalCommandData cmd)
{
UIApplication uiapp = cmd.Application;
UIDocument uidoc = uiapp.ActiveUIDocument;
Autodesk.Revit.ApplicationServices.Application app = uiapp.Application;
Autodesk.Revit.DB.Document doc = uidoc.Document;
FilteredElementCollector collector = new FilteredElementCollector(doc).OfClass(typeof(Family));
string str = "";
foreach (var item in collector)
{
str+=item.Name+"\n";
}
TaskDialog.Show("??",str);
}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น