|
Re: [Model2Doc] Make a template simply available [message #1820642 is a reply to message #1820554] |
Fri, 24 January 2020 09:11   |
|
Hello Yoann,
I think you can write your own action (Eclipse Command, Handler and Menu) to select your prototype in the workspace, in order to :
- load it in the ResourceSet of your Papyrus model,
- create a Template from the prototype,
- define the semanticContext and the graphicalContext in the template
- launch the generation
but I'm not sure a such template will appears easily in the ModelExplorer...
So, I'm pretty sure, this behavior can be implemented, but I'm not sure of the troubles you will find bypassing the normal integration.
Regards,
/Vincent
|
|
|
|
|
Re: [Model2Doc] vs [GenDoc] [message #1820766 is a reply to message #1820750] |
Tue, 28 January 2020 13:37   |
|
Hi Yoann,
merci beaucoup for your answer. Nevertheless I feel free to comment your comments.
- It enables to define a template for the document generation without coding (as it is the case with GenDoc)
I really wonder: Why writing OMG QVT queries is considered coding, but writing AQL queries is not?
Both feature if-then-else and for constructs,
- Guided process to build a template (with pop up and property view)
That might be an argument, using a word processor as editor is feasable but not that convinient.
- Very efficient even for large models
How big is large? My test model consisting of 90 submodels transforms within 22s on my mobile workstation.
- The template is contained in the model : it is a representation of the model as a diagram or a table
Same on both alternatives
- It builds an intermediate model which means it can be extended.
Same on both alternatives
I regard being able to use the same language (MOFM2T which is based on QVT) for rich text document and pure textual artefacts a big plus.
And two more question on M2Doc
So far all companies and organizations I worked for, have their own collection of Microsoft Word templates. How do I use Microsoft Word document templates?
How do I generate slide-sets (Microsoft Powerpoints) and spreadsheets (Microsoft Excel) using M2Doc?
/Carsten
EDIT: typos and extension
[Updated on: Tue, 28 January 2020 14:52] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02124 seconds