Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354952

Summary: [Export] Export to HTML website
Product: [Modeling] Papyrus Reporter: Raphael Faudou <raphael.faudou>
Component: CoreAssignee: Project Inbox <mdt-papyrus-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: arthur.daussy, benoit.maggi, c.eeckhout, cletavernier, faure.tristan, johan, klaas.gadeyne, kristof.berx, papyrus-bugs, pierre.gaufillet, raphael.faudou, ronan.barrett
Version: 0.10.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: nwadsl

Description Raphael Faudou CLA 2011-08-17 10:13:46 EDT
It should be very useful to give the user ability to export the model (and diagrams) as a web site. This fucntionality is available in all commercial tools and in TOPCASED and is well appreciated as it gives access to the model for people who do not have Papyrus installed.
Solution: migrate the code from TOPCASED.
Comment 1 Ronan Bar CLA 2013-09-12 10:51:43 EDT
I agree this would be very useful. At the moment we have to export each diagram individually and get no report or website.
Comment 2 Toni Siljamäki CLA 2013-11-20 04:13:04 EST
Has there been any progress on this HTML-export issue lately?
Exporting diagrams with shapes to pdf does not work well.
Comment 3 Ronan Bar CLA 2013-11-21 08:07:23 EST
I can add some more details of the use-cases we see now:
1) HTML Report export - Here it would be good to have a report so that users who are not technical can see the models in a structured way without needing to install/launch Papyrus. This is a usual feature of modelling tools.

2) RTF/PDF Export - This is needed as often reviews are done on models and their documentation. Reviewers need to be able to add comments directly to the model/diagrams without changing the model. Also another use-case here is that often a snapshot of the model is needed to be stored in a document management system.

3) Presentation Export - Here the diagrams should be exportable so they can be used in presentations. Ideally each diagram element should be independently group/ungroupable so the diagram can be tweaked. The elements must also be scalable so zooming can be performed in some presentation tool without loss of quality. Perhaps the model diagram in papyrus could be cut & pastable into a presentation tool directly.
Comment 4 Toni Siljamäki CLA 2013-11-21 08:51:17 EST
When exporting diagrams each diagram get exported to its individal file.
Exporting to jpeg works pretty well, but exporting to pdf does not.
Scalable images can be achieved by exporting to SVG, but if the
diagrams contain SVG shapes this export does not work well either.

Another use case:

4) Our network architects have asked for diagrams to be exported
   straight to powerpoint, where elements in the diagram becomes
   separate objects on the slide.

This could be useful when there is a need to make adjustments to the diagram
before/while presenting it, perhaps advicing how the model should be updated.
Comment 5 Ronan Bar CLA 2013-11-21 09:58:12 EST
For UC #3 Cut & Paste from Papyrus to Powerpoint is possible today. The images (.png) are scalable but not ungroupable (assuming a diagram export with many elements).
Comment 6 Carl Eeckhout CLA 2015-02-18 05:54:02 EST
Exporting as a website is also very relevant to us in order to ease user access. As Papyrus supports the linking of diagrams over hyperlinks, this should be supported as well.

The graphical export functions are often not generating the correct content if the diagram is not opened in the viewer (colours are gone).

When a fresh copy is made of a diagram and the related names are renamed, the original diagram is generated when exporting to a graphical format. It requires restarting Papyrus in order to have this solved.
Comment 7 Camille Letavernier CLA 2015-02-18 07:18:31 EST
> The graphical export functions are often not generating the correct content if the diagram is not opened in the viewer (colours are gone).

This has been fixed at least on Mars
Comment 8 Klaas Gadeyne CLA 2016-01-19 08:06:49 EST
(In reply to Raphael Faudou from comment #0)
> It should be very useful to give the user ability to export the model (and
> diagrams) as a web site. This fucntionality is available in all commercial
> tools and in TOPCASED and is well appreciated as it gives access to the
> model for people who do not have Papyrus installed.
> Solution: migrate the code from TOPCASED.

Hi Raphael,
Do you know if the source code of topcased is still available somewhere?
Comment 9 Raphael Faudou CLA 2016-01-20 11:42:47 EST
(In reply to Klaas Gadeyne from comment #8)
> (In reply to Raphael Faudou from comment #0)
> > It should be very useful to give the user ability to export the model (and
> > diagrams) as a web site. This fucntionality is available in all commercial
> > tools and in TOPCASED and is well appreciated as it gives access to the
> > model for people who do not have Papyrus installed.
> > Solution: migrate the code from TOPCASED.
> 
> Hi Raphael,
> Do you know if the source code of topcased is still available somewhere?

Hi Klaas,

Topcased sources have been backed up by Pierre Gaufillet I believe.
@Pierre, do you confirm that?
Comment 10 Eclipse Genie CLA 2016-04-15 09:39:46 EDT
New Gerrit change created: https://git.eclipse.org/r/70755
Comment 11 Benoit Maggi CLA 2017-12-19 05:13:16 EST
I close the bug as duplicated. 

For what it worth, Topcased source may be found here: 
https://github.com/bmaggi/Topcased

(I used the latest version I had)

*** This bug has been marked as a duplicate of bug 518310 ***