Script to read a layout scale and updat to the title block?

This is something that is essential for my work using AC. My Title block has a field assigned to the viewport scale. Clicking “update” reads the scale view of the viewport and displays it (e.g. 1"=1’-0") in “scale” area of my title block. A rep from McNeel said Rhino did not have this, and I wondered if it was something that could be a script?