Returns the Element object of the element to which the macro page is attached.
-- must be executed as UI script!
-- print the name and type of the element that has the macro page attached
element = getElement()
-- print the name and type of the parent element if there is one
if element.parent then