Book a Demo

Author Topic: Difference between size of elements in EA and XMI  (Read 4021 times)

Lukasz

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Difference between size of elements in EA and XMI
« on: September 03, 2014, 05:52:09 pm »
Hello,
Size of e.g. win32Dialog displaying in the EA (on the bottom) is different from the size exported to the XMI file. In the XMI are values left and right edges of the control. (Right - left should be a width of the control).
Can someone say me where the problem is?
Photos in the attached files.

EA:


Size:


XMI file:


Width: 281-14 = 267, but EA show 401

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Difference between size of elements in EA and
« Reply #1 on: September 03, 2014, 06:34:21 pm »
Your diagram indicates that it is not saved. So you better try this after saving the diagram.

q.

Lukasz

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Difference between size of elements in EA and
« Reply #2 on: September 03, 2014, 06:49:23 pm »
Quote
Your diagram indicates that it is not saved. So you better try this after saving the diagram.

q.

I have tested this many times, even before answering you, and the problem is still not solved. I saved the changes.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Difference between size of elements in EA and
« Reply #3 on: September 03, 2014, 07:40:00 pm »
Was just a guess. Another reason could be that the size is calculated dynamically according to the name of the element. In which direction did you work? Save XMI from model -> XMI is different. Or XMI to model -> model is different?

q.

Lukasz

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Difference between size of elements in EA and
« Reply #4 on: September 03, 2014, 07:56:36 pm »
Model -> XMI is different. XMI -> model I haven't tried.

There is also problem with size and the various dpi:

dpi 125%:
h: 286
w: 467

dpi 100%:
h: 232
w: 401

And, when I generate XMI for this two values of dpi, values for the margins (left, top, right, bottom) are the same in this files.
« Last Edit: September 03, 2014, 07:57:06 pm by stuk06 »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Difference between size of elements in EA and
« Reply #5 on: September 03, 2014, 09:31:42 pm »
I have an explanation for the latter. Changing the dpi with the zoom does affects only the screen rendering. The XMI obviously only stores the pixels for the 100% resolution.

The main issue may also be connected to this dpi issue. Rendering in Mickeysoft environments in general is, to be polite, far from being perfect. There's a good chance that EA puts something on top. Rendering is not really one of EA's strengths.

q.

P.S. I just tried an export with a simple example and there the coordinates are ok. Also the zoom had no influence on the positions. Hmmm
« Last Edit: September 03, 2014, 09:36:55 pm by qwerty »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Difference between size of elements in EA and
« Reply #6 on: September 04, 2014, 08:54:18 am »
Win32 diagram elements use a coordinate system in dialog units instead of pixels, but obviously EA is displaying the size in pixels on the status bar.

Lukasz

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Difference between size of elements in EA and
« Reply #7 on: September 05, 2014, 04:17:27 pm »
Thanks, now it works :)