Use GenDoc with Capella [message #1693437] |
Fri, 24 April 2015 09:02  |
Eclipse User |
|
|
|
Hi,
Using GenDoc with Capella generate an error message during <context> script evaluation :
"The executinio of a script failed: Error during generation of Gendoc script :Sting index out of range: -1"
Does some one use or test GenDoc with Capella.
You can see in file attachments : docx template file and capella files.
Thanks
Philppe
|
|
|
|
Re: Use GenDoc with Capella [message #1693691 is a reply to message #1693631] |
Mon, 27 April 2015 14:20   |
Eclipse User |
|
|
|
Hello,
the requested informations below.
Environement :
- OS Windows 7 Professionnale SP1
- Word 2010
Installation :
Capella 0.8.0 (64-bit) build id 2014-03-13_13-00-18
GenDoc 0.5.0.201411170936 (RC2)
|
|
|
|
Re: Use GenDoc with Capella [message #1693793 is a reply to message #1693758] |
Tue, 28 April 2015 11:39   |
Eclipse User |
|
|
|
We found a workaround.
I don't know what are the impacts for Capella so please create a separate Capella for gendoc environment.
After installing gendoc, you have to install (update) latest release of EMF so do Help>Install New Software ... >
- in the url field insert http://download.eclipse.org/releases/luna/
- group items by category
- in modeling category select EMF - Eclipse Modeling Framework SDK (it should be an update icon)
then Next > Next > Finish > Restart
After restart, you should be able to generate your template.
As I said previously can you open a bug to keep a trace, we will analyze what is the minimum version of EMF required and will change that in our dependencies.
Regards
|
|
|
Re: Use GenDoc with Capella [message #1693900 is a reply to message #1693793] |
Wed, 29 April 2015 08:59   |
Eclipse User |
|
|
|
Hi,
the workaround is working, I am able to generate file from the template. As you asked me, a bug has been opened (#465692).
But, i added two elements and one diagram, and modify my template to add their name.
The generation process runs without error for elements and one error for diagram. Then not any informations are displayed in the generated document neither for elements, neither for diagram.
Attachment files contain the modified models file, template file and log file.
Regards
|
|
|
Re: Use GenDoc with Capella [message #1693916 is a reply to message #1693900] |
Wed, 29 April 2015 09:38   |
Eclipse User |
|
|
|
It seems you attached wrong file
by the way please find in attachment a template which starts from the aird and then browse the diagrams.
I think as there is papyrus services in gendoc we should find some capella services helping for diagram retrieving
|
|
|
Re: Use GenDoc with Capella [message #1694034 is a reply to message #1693916] |
Thu, 30 April 2015 08:02   |
Eclipse User |
|
|
|
Thanks, it's ok.
I don't find a Capella bundle for gendoc.
Is it possible to get the diagrams owned by a model element, without specific bundle ? I would generate a document from melodymodeller and for some elements display an owned diagram.
I think the context must load the two models melodymodeller and aird, but starting by melodymodeller, i don't know how the aird can be loaded.
I guess, start by aird, don't allow generate a document based on element that isn't presented in any diagram or it doesn't own a diagram.
regards
|
|
|
Re: Use GenDoc with Capella [message #1694040 is a reply to message #1694034] |
Thu, 30 April 2015 08:40  |
Eclipse User |
|
|
|
I've never heard about a capella gendoc bundle but it would make things easier, (actually a sirius bundle could be enough) can you open a bug (enhancement) about it to trace ?
if you start from capellamodeller file you can try to use element.load('aird') service to load the resource containing the diagrams
To get elements from a specific element it is possible, you have to browse the Sirius diagram metamodel and search for semantic element relationship
[Updated on: Thu, 30 April 2015 08:52] by Moderator Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.06648 seconds