private double GetAreaSurfaceDuctFitting(Element element)
{
double hh = 0.0;
Options opt = new Options();
GeometryElement gE = element.get_Geometry(opt);
foreach (GeometryObject gO in gE)
{
GeometryInstance gI = gO as GeometryInstance;
if (gI != null)
{
var area = gI.SymbolGeometry
.OfType<Solid>()
.Select(s => s)
.Where(s => true)
.Select(s => s.SurfaceArea)
.FirstOrDefault();
hh = area;
}
}
return hh;
}