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.
We are using SetDocumentData/GetDocumentData in order to take advantage of the Sections capability. We are using other sections of the Document Data and want to keep this titleblock information separate. My understanding was that DocumentUserText would show all document data, it just separated the Section/Key | Attribute.
@Trav, thanks for the help. I started with a blank template, added text fields, then used your simple test. Everything worked - The panel updated with Section\Key | Value, and the text fields immediately updated as well.I also ran my script on the blank template and it correctly added the Section\Key | Value.
I also went back to my multi-sheet drawing and did some updates on the DocumentData using my script. Everything was working and I noticed the text updated immediately, but there was a bit of lag before the DocumentText panel updated.
I’m not really sure why I was having issues earlier, but I suspect I may have manually entered some forward slashes which added to my confusion. If I have further issues, I’ll update this thread.
@Trav, i got a file here containing DocumentUserText which displays differently in V5 and V6. There is one key which displays in both versions using GetDocumentUserText and 3 keys which only display in V6 in the dialog. Can i sent it directly to you without posting ?