Dimension Beam to Level in Elevation/Section

This behaviour is called Element binding : Element Binding in Revit
I will look if it is of interest to integrate it into my custom node.

For the other questions about the OOTB * Dimension.ByElement * node, I don’t know the details of how it works and these limitations.
The node code must be on the Dynamo github.