Book a Demo

Author Topic: Jumping line angles  (Read 11089 times)

ChrisMW

  • EA User
  • **
  • Posts: 90
  • Karma: +2/-0
    • View Profile
Jumping line angles
« on: November 02, 2016, 01:22:05 am »
Hi,

I think I've seen this one dealt with before, but can't seem to find it. I share a repository with several co-workers, but on each machine, the line angles jump. Normally we tend to use custom lines, but they seem to easily decide to alter my carefully created route (straight angles, but not always the shortest) in one with weird angles. So when I save it, it looks good, when someone else loads it, it looks bad.

We all have 96dpi displays, we all have the same font config in EA. What else can be done to ensure the diagrams look consistently neat across our screens? Stop using custom lines? I like custom lines, and use virtualisation of ends quite frequently. But the diagram should display correctly across the machines.

I even have it on one computer, that runs Wine + EA and a virtualised windows 7 and EA. What causes the lines to jump around? Fonts seem to matter.

Rgds Chris

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Jumping line angles
« Reply #1 on: November 02, 2016, 02:03:38 am »
Also seem to remember a talk about this, but also can't recall details. You could check which renderer is set (it's somewhere in the Options).

q.

ChrisMW

  • EA User
  • **
  • Posts: 90
  • Karma: +2/-0
    • View Profile
Re: Jumping line angles
« Reply #2 on: November 02, 2016, 06:20:12 pm »
Whilst the renderer does make some impact on the visibility of the lines, the fonts seems to have a bigger influence. But those we've synced and the problem is still there. What seems to happen is that the boxes (it's a logical datamodel in this case) alter position a little and this causes some parts of the line to jump (mostly those that connect to an ellement) and some not (where I've bent the line). Personally I'd rather have the element stay where I've put it and have the font become less readable, or have the font resized to fit the space it gets on the system. Then nothing would have to change. Seems less of a problem than having to look at a messy diagram. Perhaps an option to consider?

All the systems are using Enh-1, with the GDIPlus checkmark set. Basic works but yields thin lines on some machines and Enh-2 doesn't play well with others.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Jumping line angles
« Reply #3 on: November 02, 2016, 07:06:05 pm »
Maybe the local zoom is different?

q.

ChrisMW

  • EA User
  • **
  • Posts: 90
  • Karma: +2/-0
    • View Profile
Re: Jumping line angles
« Reply #4 on: November 02, 2016, 08:19:18 pm »
Hi, perhaps I'm not getting you, but isn't the zoom level saved with the diagram? I.e. if I save in one, and open in the other, it should display the same. All other things being equal. Or are you referring to a setting somewhere, I can check that....


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Jumping line angles
« Reply #5 on: November 02, 2016, 08:26:08 pm »
There are multiple zooms. The slider bottom right is local - AFAIK.

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Jumping line angles
« Reply #6 on: November 03, 2016, 09:03:46 am »
Whilst the renderer does make some impact on the visibility of the lines, the fonts seems to have a bigger influence. But those we've synced and the problem is still there. What seems to happen is that the boxes (it's a logical datamodel in this case) alter position a little and this causes some parts of the line to jump (mostly those that connect to an ellement) and some not (where I've bent the line). Personally I'd rather have the element stay where I've put it and have the font become less readable, or have the font resized to fit the space it gets on the system. Then nothing would have to change. Seems less of a problem than having to look at a messy diagram. Perhaps an option to consider?

It sounds like diagram objects are changing size because their contents are changing size, for whatever reason. There is an option that might help - ribbon: Start | Preferences | Appearance | Compress text to fit within Element.
The Sparx Team
[email protected]

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Jumping line angles
« Reply #7 on: November 03, 2016, 12:08:05 pm »
[SNIP]
It sounds like diagram objects are changing size because their contents are changing size, for whatever reason. There is an option that might help - ribbon: Start | Preferences | Appearance | Compress text to fit within Element.
Hmm...  Learn something new every day!

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

ChrisMW

  • EA User
  • **
  • Posts: 90
  • Karma: +2/-0
    • View Profile
Re: Jumping line angles
« Reply #8 on: November 04, 2016, 08:00:40 pm »
That option is set on all machines, I think it is a default with EA13, still things are not calm visually.

So I took the same diagram, from the same project, simply loaded the file, opened the diagram and did a publish to file. I choose WMF as the format. Now it gets interesting, as the result is not equal, why?

From the Wine EA 13, the wmf info is:


From the Win 7 running under virtualbox the info is:


As this is the same diagram, from the same file, I'd expect this to be the same. The Wine image looks clean, but the Win7 VB client looks like the aspect ratio is stuffed. Something which the file is reflecting (1:12 vs. 1:57). Also the colour count is different, file size etc... The Diagram is set to always be on one page, A4 portrait in this case.

But there's something else, the sequence of the attributes differs also, look at the example from wine:


Notice how under windows the field Type on the right is now in a different spot:


Is there a global setting that affects this? I assumed that this setting would be per project and therefore stored in the project file.

However, the different interpretation of the diagram size affects the display also, here's a part frrom the Wine EA:


And the similar part from the Windows VB client EA:


Now given that A4 is a standard size, this is the same EAP file and the DPI setting is equal, something else is going on, the font resize into element option is on, I was expecting the wmf of the same diagram to come up with the same numbers. Default element font is Arial 8 on both environments, as are the other settings.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Jumping line angles
« Reply #9 on: November 04, 2016, 08:38:30 pm »
I noticed that the attributes are sorted differently. Is this a user local setting?

q.

ChrisMW

  • EA User
  • **
  • Posts: 90
  • Karma: +2/-0
    • View Profile
Re: Jumping line angles
« Reply #10 on: November 04, 2016, 09:31:44 pm »
My question also, it was not done deliberately. And I cannot find a global setting, so it should be a setting inside the project. That begs the question, why does one apply it and the other not? There seems to be more than one thing going on here.....

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Jumping line angles
« Reply #11 on: November 04, 2016, 10:14:43 pm »
This might be a side effect (not desired). Link to element feature and straight lines conflicts with Sort Features Alphabetically. I guess to get a consistent pictured, this option needs to be global rather than local. You could see that as bug. But you will not see a correction (my guess). Now that you know, just have your group set the sorting the same way.

q.

ChrisMW

  • EA User
  • **
  • Posts: 90
  • Karma: +2/-0
    • View Profile
Re: Jumping line angles
« Reply #12 on: November 05, 2016, 12:25:00 am »
I switched off alphabetic ordering and that improved things a lot. Strange though, before it was set on both. But switched-off it has improved.

Now just to have the Win7 virtual PC export images like I see EA export to the WMF under Wine. The Win7 export is distorted.

Just look at the rendering when zoomed in:



You can't even read the word version. Now look at the WMF that was writting under wine:



And yes, regardless of the default setting in the system, if a project has altered the sequence (you even get a dialog box to warn you it will switched off), that override should be honoured. Not entirely happy with having to switch it off, as I find it usefull in most cases, but not in all. I've gotten into the habit of then moving it for the few and confirm it on the dialogs it shows. 

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Jumping line angles
« Reply #13 on: November 05, 2016, 01:04:26 am »
I could imagine that rendering behaves different under Win/Wine. I guess you need to contact Sparx support/report a bug in order to get this fixed.

q.