Autodesk.Revit.DB.Face是Revit中的一个类,表示一个几何面。
// 创建正方形Face并将其添加到元素
Solid solid = GeometryCreationUtilities.CreateBox(width, height, depth, XYZ.Zero);
PlanarFace face = solid.Faces.OfType<PlanarFace>().FirstOrDefault();
ElementId materialId = new ElementId(BuiltInCategory.OST_Walls);
ElementId levelId = new ElementId(BuiltInCategory.OST_Levels);
Wall wall = Wall.Create(doc, face, materialId, levelId, height, 0, false, false);