How to constrain between hole centres?

I have two connectors that need to be distanced by their mounting hole centres.

The constraints wont allow anything close to what I want. I've added axes, planes, and nothing seems to work.

In Inventor all you did was grab two centres and added a measurement.

Is there a special way to do this on here?

SolidworksAssemblies