Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: PeteC on March 10, 2022, 08:04:57 pm
-
I am trying to use the DocumentGenerator in a script to generate documents for a Document Script in a document template fragment but it's not working and my Session.Output messages in the script are not appearing. I have a working Custom Script to which I have added some Session.Output messages and they don't appear either! I must be looking in the wrong place (I've tried both the System and Script tabs in the System Output window which is where the script output normally appears from Session.Output messages.
-
Hi Pete,
My solution is to write directly to the system output
Example:
const outputName = "MyTabName"
sub main
'create output tab
Repository.CreateOutputTab outPutName
Repository.ClearOutput outPutName
Repository.EnsureOutputVisible outPutName
'inform user
Repository.WriteOutput outPutName, now() & " my message for the output tab", 0
end sub
main
Geert