I haven't done this but the way to approach this is to go through each sheet in the design then use Query() to get the components on that sheet. Then go through all components to figure out the object type and if the object type is VDTS_TEXT then get the Name (or Label - not sure) to see if that is of interest or not. If it is then change using TextString()
I think I figured out a way to handle this the way I want. I didn't realize I was in the Xpedition section, I'm using PADS Layout 9.4.1, so sorry vkhurana, but thank you for replying.
The best way for me to handle it is to combine the text with a shape (a dummy shape, which is on a different reference layer that won't show up in the gerbers), then save that shape to the library with a specific name. The Drawing object (Document.Drawings) then will have a collection of texts associated with it (actually just one text). If I just use one text line per drawing, then I can identify the drawing by the name I saved it by in the library, then modify that text. It will be a lot of work to set up our default templates but once they're set up we can just run a script that identifies all the drawing names and modify the text associated with them.