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
}