|
|
|
|
|
|
Re: Diagrams are not displayed in generated document with sirius bundle [message #1810337 is a reply to message #1721913] |
Thu, 08 August 2019 11:35 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Bestoon Jaff![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=bestoon.jaff%40gmail.com) Messages: 13 Registered: August 2017 |
Junior Member |
|
|
Hello,
I have the exact same problem as Philippe Desannois explained above. I want to generate Sirius diagrams and tables from the file 'representations.aird', but gendoc cannot generate/display them in the output document, and either gives an error saying it could not load the .aird model file, or it doesn't display any diagram at all!
My development environment:
Obeo Designer Community Edition: 11.1.2 which is based on Eclipse 4.8.0
Sirius: 6.1.3
EMF: 2.14.0
Gendoc: 0.7.2
Can someone please help me fix this issue?
[Updated on: Thu, 08 August 2019 11:59] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: Diagrams are not displayed in generated document with sirius bundle [message #1810404 is a reply to message #1810379] |
Fri, 09 August 2019 15:18 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Bestoon Jaff![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=bestoon.jaff%40gmail.com) Messages: 13 Registered: August 2017 |
Junior Member |
|
|
Hello Tristan,
Thanks once again for your reply and sorry for my rather late one, You are right, and I agree that gendoc is powerful enough to generate loads of diagrams quickly. As I'm new to gendoc, it's unfair for me to make any judgment on gendoc's performance. I simply asked for help as I'm a new user of gendoc lacking sufficient knowledge and experience about using gendoc in the right way, something which I should admit.
Concerning my case, I could find two issues which prevented gendoc from generating and display any diagram or table. First of all, it seems that gendoc trying to load a .aird file containing all Sirius graphical representations (including diagrams and tables) and by default gendoc assumes the .aird file to have the same name as the semantic model which we specify in the context tag. For example, if the model file is named "test.extention" then it looks for and tries to load a file called test.aird in the same directory(folder) where the model file is resided. However, in my case the model file was in a directory called model and it was named my.modelname and the .aird file was, by convention, named representations.aird which was resided at the project's root folder. However, I tried different ways to tell gendoc that the .aird file has a different name than my model file name and it is located in a different folder than my model, including the use of another <context> tag and using loadRelative() service, however I couldn't get them to resolve the problem. Again, may be I was trying to use those two mechanism in an incorrect way, as I'm not gendoc expert., hence I came here to ask for help from a gentle people like yourself.
I even tried to use another <context> tag and pointing to the .aird file as the value of the model attribute of the context tag, and then tried to navigate and generate the Siuris diagrams this way, but this was also failed in my case. Again, it might be that I was trying in a wrong way.
In summary, I came to a conclusion that if we name our model file as representations and placed in the same directory (the modelling project's root directory) as the representations.aird file, the gendoc can load it without a problem.
I do really appreciate if you know a solution/workaround that could allow us to use gendoc in our other modelling projects where the model files have different names than the representations.aird and even placed in a different directory/folder.
Once again, thank you very for your help.
[Updated on: Fri, 09 August 2019 15:26] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04647 seconds