for quite a while i've had a solution to this using tikz.
i have some code that calculates a height dependent on the heights of the frametitle (including line breaks) and of the framesubtitle (if it is present). i then use tikz to draw a line at this calculated height.
i now find myself needing to use tikzexternalize and if there happens to be more than one tikz picture then the frame content and tikz images are lost.
so, the question is, how can i draw a horizontal line of defined width and color at a specified height on the frame (relative to the top) without tikz? this was how i did it before.
\newcommand{\topline}{%
\calculateLengths{0}
\tikz[remember picture,overlay] {%
\draw[riceBlue] ([yshift=-\contentheadheight+6pt,xshift=2cm]current page.north west)
-- ([yshift=-\contentheadheight+6pt,xshift=\paperwidth-2cm]current page.north west);
}%
}
the calculateLengths command found the lower edge of the frametitle and framesubtitle.