Hi @dzkt98 try take a look at this post here could probably help
https://forum.dynamobim.com/t/create-dimension-between-column-reference-center-and-grid/109780/4elp…
another node there probably could help is this one here from openmep…Element.GetLocationGridLine