Message 1 of 4
Calculate area of room boundary walls

Not applicable
12-22-2015
07:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
how calculate area of boundary room walls with opening?
Walls which have door or window is not valid calculate by SpatialElementGeometryCalculator.
foreach( SpatialElement e in roomCol ) { Room room = e as Room; if( room != null ) { try { Autodesk.Revit.DB .SpatialElementGeometryCalculator calc = new Autodesk.Revit.DB .SpatialElementGeometryCalculator( doc, sebOptions ); SpatialElementGeometryResults results = calc.CalculateSpatialElementGeometry( room ); Solid roomSolid = results.GetGeometry(); foreach( Face face in roomSolid.Faces ) { IList<SpatialElementBoundarySubface> subfaceList = results.GetBoundaryFaceInfo( face ); foreach( SpatialElementBoundarySubface subface in subfaceList ) { if( subface.SubfaceType == SubfaceType.Side ) { Element wall = doc.GetElement( subface.SpatialBoundaryElement .HostElementId ); double subfaceArea = subface .GetSubface().Area;
...