elem = selection[0] #надо выделить семейство
opt = Options()
opt.IncludeNonVisibleObjects = True
geomInstance = filter(lambda x: x.GetType().Name == "GeometryInstance", elem.get_Geometry(opt))[0]
instGeom = geomInstance.GetInstanceGeometry()
pointElem = filter(lambda x: x.GetType().Name == "Point" and doc.GetElement(x.GraphicsStyleId).GraphicsStyleCategory.Id == ElementId(BuiltInCategory.OST_IOSRoomCalculationPoint), instGeom)[0]
point = pointElem.Coord
col = FilteredElementCollector(doc)
spatialElems = col.OfClass(SpatialElement).ToElements()
spatialsWithPoint = filter(lambda x: (x.GetType().Name == "Room" and x.IsPointInRoom(point)) or (x.GetType().Name == "Space" and x.IsPointInSpace(point)), spatialElems)
lookup(spatialsWithPoint)