A field can be used to track and display a viewport scale.
Start the relevant text command and cick Insert Field to add a field
Choose Object as Field Category and select the required viewport as Object type. Under property choose custom scale and select the required format.
AutoCAD inserts a field into the text string that checks the viewport’s scale. The field displays the current value and updates whenever it changes
Hope this is of some help,