Revit API を使用して CompoundStructureLayer の面を取得する方法はありますか?
これが私の現在の「レイヤーの抽出」コードです:
CompoundStructure compoundStructure = wall.WallType.GetCompoundStructure();
IList<CompoundStructureLayer> layers = compoundStructure.GetLayers();
foreach (CompoundStructureLayer layer in layers)
{
// Retrieve Faces
}
そして、これは現在の顔を取得するコードです:
GeometryElement geo = wall.get_Geometry(opt);
GeometryObjectArray objects = geo.Objects;
foreach (GeometryObject obj in objects)
{
Solid solid = obj as Solid;
if (solid != null)
{
FaceArray fa = solid.Faces;
// Do face stuff
}
}
CompoundStructureLayer を Element タイプに変換できません。顔情報を抽出するにはどうすればよいですか?