1
是否有人獲得任何代碼來獲得牆的長度?目前我使用:Revit 2011獲取牆的長度
ElementCategoryFilter wallsFilter =
new ElementCategoryFilter(BuiltInCategory.OST_Walls);
FilteredElementCollector collector = new FilteredElementCollector(Doc);
IList<Element> walls =
collector.WherePasses(wallsFilter).WhereElementIsNotElementType().ToElements();
foreach (Element wall in walls)
MessageBox.Show(wall.get_Parameter("Length").AsString());
長度回來空!