Dimension Pipe Support Spacing With Dynamo

Hello everyone , how can I measure the spacing of the pipe support elements in the project I left the screenshot . I want to dimension all console ranges as I have indicated with the arrow sign.

can it be done?
SPRINKLER 2500.rfa (764 KB)