Global variables in all text fields/objects in rhino document

It would be cool if it was possible to use user-defined global variables throughout text fields in Rhino document. For example in:

  • layer names
  • named views
  • text objects
  • object names
  • block names

It would really streamline architectural project management - for example when sections change names you’d want all related objects (viewport names, clipping planes, layer names) change the name automatically.

Found out that DocumentUserText can be inserted into text fields. I assume that with a bit of scripting it can be used in other places as well.