How to calculate max distance between two polygons in ArcMap?

I have two layers formed by polygons that I need to overlap in order to calculate the max distance of one polygon with respect to the perimeter of the other one.

In order to be clear I have this type of situation: I have a file with the black polygons and another file with the red one. I need to know the maximum distance of the red one to the black one (the blue arrow in the example).... any suggestion?

Here the passages that I'm making:

1) this is the initial situation. In order to simplify the situation I made the polygons with the exact colours as in the example: 2) Next, I made the euclidean distance as follows: 3) Zonal statistics: 4) this is the output: If I'm correct: the COUNT is the previous FID (so the number that indicate each black polygon). Max should be the maximum distance of the black polygon to the next red polygon. If this is right, how is it possible that in some cases I have Min greater than zero and Max equal to zero? Moreover, this values are already in meters?

Actually it is a bug: if I compute only max make sense: So that MAX are the maximum number of METERS to the next red polygon, right? A last question: is it possible to have a 0 value if NO red polygons are inside the black polygons?

• Are all polygon that ideal in respect to being rectangles and alingment? – Matte Jun 13 '16 at 10:46
• Basically the red are in general included in the black onen.. it can be that one red is spread through more than one black... Basically the reds are Buildings and blacks are properties (if I have a public building it can be spread on more than one property) – Nicola Jun 13 '16 at 12:41
• glad that it worked. If you have a polygon inside then the min will be zero, For more precision (to avoid edge uncertainty), you should use select by location" – radouxju Jun 15 '16 at 12:23
• The last point is not clear for me (I'm really stupid, sorry!!).... The min = 0 make sense only if the two polygons has the same edge on the same line... but if is it a case as the first example in which the red one is completely included in the black one without sharing an edge? where I should use select by location? – Nicola Jun 15 '16 at 13:03