2012-02-17 30 views
0

Revit APIを使用して部屋の現在の床と現在の天井を取得するにはどうすればよいですか?私は2012年版を使用しています。部屋の床と天井を取得

I`veは試してみました:

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 
} 

答えて

0

を私はこれを行うための簡単な方法がないと思います。 3番目のサンプルのように、面をループし、法線方向をZベクトル(XYZ.IsAlmostEqualTo)と比較する必要があります。

関連する問題