Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: xdonzel on May 31, 2023, 12:46:06 am
-
Hello everyone,
my first post here :p
I'm currently working on fragment script to generate document.
I'm using custom document where i drag and drop some element/package/diagramm from the model and select the dedicated custom template for each of them.
For the purpose of generating ICD, i want to generate table from a context diagram (an IBD in sysml).
it not possible to do it directly from standard tempalte i need to use script to gather extra informations.
yet I'm facing some error apparently with the script itself ( the script log just say that there is an error).
Unfortunately i don't have much explanation on what or where the script is failling.
If i used the script manually (ie: running the script directly on a package , i'm able to generate a the XML data).
In order to go step by step i wanted to restart with the example provided in https://sparxsystems.com/enterprise_architect_user_guide/14.0/model_publishing/example_output_of_an_rtf_templ.html (https://sparxsystems.com/enterprise_architect_user_guide/14.0/model_publishing/example_output_of_an_rtf_templ.html)
i tried to use it also without success, i v'e also the same "script error message" and nothig is generated in the script output windows
so that my request :)
Would it be possible to someone to send me an EAP example to test the fragment script feature?
hope that i'm clear enough , if not , could you tell me what kind of details i need to add to my request :D?
thanks in advance
xavier
-
You'll have to "debug" it by stripping everything and building it up step by step.
As a sidenote, have you tried using an SQL Fragment? My experience is that there are only very rare cases where you can't get what you need using SQL, like when you need to parse XML or somehting like that.
Geert
-
thanks for your feedback :)
indeed, now that i've made the script , if i look it back it may be possible to generate an equivalent query.
i will look in this direction as well it may be faster than debugging :p