Quickly dimensions between different categories

Hi @viktor_kuzev I want to do the same, I want to measure the distance between multiple elements as shown in the video.

Can you please help me out with this ?
Can you please share the script file as I am trying but not working properly.

The topic can be found here: Automatic dimension of linked elements