revit api, get the position of an element code example
Example 1: how to get element by title js
var node = document.querySelector('[title="element title attribute value"]');
Example 2: javascript get element position relative to document
element.getBoundingClientRect().top + document.documentElement.scrollTop