1

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 类型。如何提取人脸信息?

4

0 回答 0