In RH5 we had a script that we used to add DocumentUserText to our drawings in order to fill out the Titleblock on multiple sheets at once.
def RunCommand( is_interactive ): Keys = ['CLIENT','LOCATION','PROJECT','TITLE','DRAWER','CHECKED','APPROVED','DRAWINGNO','REVISION'] Key = rs.ListBox(Keys, "Select Attribute to edit") Attribute = rs.GetDocumentData("Block",Key) Attribute = rs.StringBox(message=None, default_value=Attribute, title=None) rs.SetDocumentData("Block",Key, str(Attribute))
It would create something like this in the DocumentUserText:
Block\CLIENT | ClientName
*Note that the script inserts a backslash.
If I use the command ‘DocumentText’ Nothing shows up. If I go to the Options > User Text, then I can clearly see my user text exists. After closing the file and re-opening it, the ‘DocumentText’ command will show all the created Document Text that didn’t show up before.