Author Topic: Diagram Image regeneration when only Notes changed  (Read 15652 times)

ea0522

  • EA User
  • **
  • Posts: 134
  • Karma: +5/-0
    • View Profile
Diagram Image regeneration when only Notes changed
« on: February 22, 2024, 06:30:10 pm »
The EA client has an option "Auto create Diagram Image and Image Map (each time a Diagram is saved)".
This is available via the menu "Settings => Option => Cloud".

With this option set, and a diagram is changed, I have the option to save the new version of the diagram.
Thus leading to a newly generated Diagram Image, i.e. shown in WebEA or Prolaborate.

However, this doesn't work when I have a Notes object on the diagram and the only change is the text shown by this note.
In that situation, the EA client thinks the diagram is not changed and thus no need to save and regenerate the Diagram Image.

Anyone have this same issue? And maybe a workaround, other than forcing the Save Diagram by moving an element or connector?

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1370
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Diagram Image regeneration when only Notes changed
« Reply #1 on: March 08, 2024, 08:13:00 pm »
This is an expected behaviour based on how EA works: updating an element either from the browser or a diagram (without updating the diagram objects) does not update all diagrams where it is visible. Images are only updated when one changes and saves a diagram.
Hence the associated images visible in WebEA or Prolaborate are not automatically updated (contrary to the dynamic diagrams in EA).

I think this is a valid point and it would be nice to have an option to force the update of diagram images for this scenario. I wonder if this could have an impact on the performances (e.g. EA freezing whilst all images are updated in the background for a large bulk update).

Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


miksko

  • EA User
  • **
  • Posts: 54
  • Karma: +2/-0
    • View Profile
Re: Diagram Image regeneration when only Notes changed
« Reply #2 on: June 17, 2024, 01:30:49 am »
However, this doesn't work when I have a Notes object on the diagram and the only change is the text shown by this note.
In that situation, the EA client thinks the diagram is not changed and thus no need to save and regenerate the Diagram Image.

Anyone have this same issue? And maybe a workaround, other than forcing the Save Diagram by moving an element or connector?

We have the same issue but have made the the conclusions Guillaume writes about. However, I noticed the following paragraphs in the EA Installation Guide (https://sparxsystems.com/enterprise_architect_user_guide/16.1/the_model_repository/configure_avc.html). As the underlined lines states, you might be able to get rid of this behaviour by enabling the EA Worker. Haven't yet tried this myself though.

Mikael

Benefits of the EA Worker
The Data Cache options for saving diagrams and linked documents in WebEA format were introduced in Enterprise Architect 13.5 (Build 1350). If users will be updating your model using an earlier build of Enterprise Architect, then the diagrams and linked documents will not be saved/updated for viewing in WebEA. In this case you can (and should) run the EA Worker on your server to ensure that all updates are reflected in WebEA.

Enterprise Architect's option for saving diagram images ('Auto create Diagram Image and Image Map') saves the diagram image only when that diagram is modified directly within Enterprise Architect. However, in the case of the EA Worker, if you modify a diagram indirectly (e.g. you rename an element that appears on multiple diagrams), then the Worker will update/save the image for all the relevant diagrams. For this reason you might choose to enable the EA Worker, even when you know users will be modifying the model using a recent (post 13.5) version of Enterprise Architect.