Get reference from rebar for dimension

Hi all,

How i get the references from rebar for dimension.

please see below image and guide me.

You can use the Element Reference node from GeniusLoci. Btw, the input for line is not the curves that represent the rebar. That is the line that designates the location and orientation of the dimension string and should be only one line input.

image