如何使用 Revit API 获取房间的当前楼层和当前天花板?我用的是2012版。
我试过了:
segments = el.GetBoundarySegments(new SpatialElementBoundaryOptions());
和:
var cs = el.ClosedShell;
甚至这个:
SpatialElementGeometryCalculator calculator =
new SpatialElementGeometryCalculator(doc);
SpatialElementGeometryResults results =
calculator.CalculateSpatialElementGeometry(el);
Solid roomSolid = results.GetGeometry();
foreach (Face face in roomSolid.Faces)
{
// Subface Code
}