Получить CompoundStructureLayer Face - PullRequest
0 голосов
/ 01 марта 2012

Есть ли способ с 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 ... как мне извлечь информацию о лице?

...