start
UIApplication app = commandData.Application;
Document doc = app.ActiveUIDocument.Document;
Face face = ;
BoundingBoxUV boxUV = face.GetBoundingBox();UV center = (boxUV.Max + boxUV.Min) * ;UV uv = boxUV.get_Bounds();
Element elem = ;
BoundingBoxXYZ bbXYZ = elem.get_BoundingBox(doc.ActiveView);Outline outline = Outline(bbXYZ.Min, bbXYZ.Max);
FilteredElementCollector collector = FilteredElementCollector(doc);
BoundingBoxIntersectsFilter invertFilter = BoundingBoxIntersectsFilter(outline, );
IList<Element> intersectWalls = collector.OfClass((Wall)).WherePasses(invertFilter).ToElements();end