Sparx Systems Forum

Enterprise Architect => Suggestions and Requests => Topic started by: Uffe on December 12, 2017, 09:14:52 pm

Title: Watermarks. Discuss.
Post by: Uffe on December 12, 2017, 09:14:52 pm
Hi all,

This is a discussion post regarding watermarks.

There are two instances of watermarks in EA: document and diagram watermarks. A document watermark consists of an image which can be specified in the document generation dialog and which is then superimposed on each page of the generated document, while a diagram watermark consists of a single line of text which is superimposed on copied, printed and generated diagrams. The text is repeated diagonally lower-left-to-upper-right with a fixed typeface, size and line separation.

I'm OK with how the document watermarks work, except they're not in the API. So I think there needs to be an addition to the DocumentGenerator() class which allows you to set an image file for the document watermark.

Diagram watermarks are a different story.

First off, there's a bug which causes the watermark to appear in front of the diagram label (eg "class My Class Diagram"). The watermark should be behind everything else, including frames and labels.

More importantly, however, these watermarks are specified per workspace. That is to say, they're stored in the user's registry and not in the project. Meaning a modeller puts the same watermarks on diagrams from every project they access, while at the same time two modellers can print the same diagram at the same time with different watermarks.

This doesn't make sense to me. It would be more natural for a watermark to be dependent on some aspect of the diagram or the model of which it is a part, not on the user account that's exporting the diagram.

I therefore propose that the diagram watermark functionality is reworked as follows:


Title: Re: Watermarks. Discuss.
Post by: Paolo F Cantoni on December 13, 2017, 10:43:40 am

Title: Re: Watermarks. Discuss.
Post by: Graham_Moir on January 12, 2018, 01:22:25 am

Title: Re: Watermarks. Discuss.
Post by: AlexMoore on March 23, 2018, 02:10:23 am
To all, I have a sheet to be pdf, it has a note or watermark that needs to be remove and create the pdf without this note. But every time I create the pdf has still the watermark even though the sheet note is turned off. Just to further explain the note is on first then I turn it off in the process before pdf creation. I know the active view does not refresh the dynamo session. Is there any other way to tackle this? Currently, I have to do this in a two-step process. I already search the forum and found the same answer, that is active view does not refresh on current dynamo session. If not possible it's ok.