Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Polarsys » Capella workbench » Diagram layout/formatting changed after exchanging model
Diagram layout/formatting changed after exchanging model [message #1828027] Fri, 29 May 2020 11:31 Go to next message
James Tooke is currently offline James TookeFriend
Messages: 9
Registered: January 2020
Junior Member
Please can someone help? The layout of a diagram does not look the same on two different computers.

A Capella model was exported to an archive and sent to a colleague. After they had imported the model to their workspace and opened it, one of the PAB diagrams did not appear the same.

Two things seemed to change on their computer:

1) the font sizes appeared to be different
2) the port labels (which were made visible) had moved to a different side of the port

The problem with this was that some of the function port labels moved too close to the border of the Behavior Component. This caused the scroll bars on the Behavior Component to appear and effectively "move" the Function on the diagram and making it difficult to read. The knock on effect of the Function moving is that the lines for the Function Exchanges also moved and further messed up the layout of the diagram.

This is obviously a problem as I want to be confident that the layout of diagrams will always be consistent, no matter which computer it is opened on.

Has anyone seen this happen before? Where, after manually changing the font sizes in a diagram or making port labels visible and positioning them, that their formatting/positioning is not the same when viewed opened on another computer.

Please note that both computers were running Capella 1.2.2 with exactly the same build number and plugins.

Is this a bug or could it be something I have done accidentally?

[Updated on: Fri, 29 May 2020 11:39]

Report message to a moderator

Re: Diagram layout/formatting changed after exchanging model [message #1828032 is a reply to message #1828027] Fri, 29 May 2020 14:36 Go to previous messageGo to next message
James Tooke is currently offline James TookeFriend
Messages: 9
Registered: January 2020
Junior Member
After some experimenting we have found that Port Labels do not always behave. It seems that Capella does not always allow you to move the label to all 4 sides of the port it is attached too. In some scenarios Capella only allows for you to place the label in the North/South positions.

I have not yet been able to identify exactly how to recreate this behavior. Currently the label placement behavior appears random. But if I can work it out then I will let you know.

Therefore my working hypothesis is that when my diagram was opened by my colleague, this North/South only rule was enforced, moving the labels and then effecting the rest of the diagram layout.

Can anyone else please confirm if they have also seen this North/South only behavior for port labels?

However, we are still seeing a change in Font sizes which is not yet explainable.
Re: Diagram layout/formatting changed after exchanging model [message #1828047 is a reply to message #1828032] Sat, 30 May 2020 00:36 Go to previous messageGo to next message
Stephane LACRAMPE is currently offline Stephane LACRAMPEFriend
Messages: 217
Registered: July 2009
Senior Member
James,
I have asked my internal teams, let's see if they can find a possible explanation for this.
Stephane


Stephane LACRAMPE
Obeo Canada
Re: Diagram layout/formatting changed after exchanging model [message #1828116 is a reply to message #1828047] Tue, 02 June 2020 06:32 Go to previous messageGo to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 300
Registered: July 2009
Senior Member
Hello,

Can you verify that the Font used for your diagram is available on the computer of your colleague? This is a required condition to guarantee the same layout on both computers.

To see the used Font:
* On a diagram, select an element. In the "Appearance" tab of the "Properties" view, you can see the name of the used Font.
* In the preference, you can change the Font used by default (Preferences/Sirius/Sirius Diagram/Appearance).

The below information are complementary. Because I think that the root cause is the Font problem.
In Sirius 6.3.0 (version used in Capella 1.4.0), there is an issue, bugzilla 550382 , to allow to locate "everywhere" a label around the node (or the border node). I think this is linked to your North/South problem. Unfortunately, this issue has been reverted in Sirius 6.3.1 (bugzilla 561385 ) because it has side effects. The version 6.3.1 will be included in the next version of Capella (1.4.1). By the way, we had not noticed a change of location between two computers.

Regards,

Laurent


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Diagram layout/formatting changed after exchanging model [message #1828343 is a reply to message #1828116] Mon, 08 June 2020 07:01 Go to previous message
James Tooke is currently offline James TookeFriend
Messages: 9
Registered: January 2020
Junior Member
Hi Laurent,

Thanks for your thoughts! It sounds like it could definitely be related to the bugzilla you gave a link to.

I can confirm the two computers have the same fonts available and the same default font set under the Sirius preferences.

I've done a test to demonstrate the problem and attached images to this post.

In the "Before" image you will see that I've done 3 different variants to help narrow down the problem:
- Default port label font
- Increased font size
- Increased font size and bold

You should also see that ALL of the port labels were placed on either the East/West side of the ports.

You can then see in the "After" image that only the labels where the font settings were modified moved to the South side of the port... which has then caused the layout to change. This is exactly what I was seeing originally and the problem I tried to describe in my first post. It is interesting that the port labels that were not changed from their default font settings were displayed in the correct position.

So, it seems that, that the best work around for us at the moment is... don't touch the font settings.

Hope this helps.
  • Attachment: Before.png
    (Size: 37.06KB, Downloaded 98 times)
  • Attachment: After.jpg
    (Size: 677.47KB, Downloaded 94 times)
Previous Topic:Operational Role diagram ( Operational Analysis )
Next Topic:Capella
Goto Forum:
  


Current Time: Fri Nov 01 23:10:49 GMT 2024

Powered by FUDForum. Page generated in 0.03867 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top