OK, here’s the deal (I haven’t got at all what you want based on your explanations(?)):
IF you can explain accurately what you want to do with these 62 things (or any thing) then I could provide a C# that does all the job.
For instance: what means same size? (same in X + same in Y + … ??) What if the buildings are not plain primitive boxes? You mean maybe same volume and/or same area and/or same N of faces and/or same N of vertices ??? Or you mean same footprint area? Or you mean same Z (within a domain). And what means direction? You mean a Ray3d that if intersects a building then this is sampled for a query? Or you mean that the building is sampled on some sort of proximity basis?
That sort of things: as I said … like talking to a very stupid robot.
BTW: Given the opportunity (speaking having a “general case” in mind) If you want to do multiple queries on things the classic way is to create a class that provides attribute info and then use Where:
Then, after populating a BrepInfo List (named in this example brepInfo) you do “sequential” Where queries: