Author Topic: Where is Persistent Zoom stored?  (Read 2858 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Where is Persistent Zoom stored?
« on: October 18, 2018, 05:17:09 pm »
Anyone know (and is prepared to share) where the Persistent Zoom is stored?  We're experimenting with this and for some diagrams, it looks like we'd need something smaller than 50%.

Can this be altered?

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

Arshad

  • EA User
  • **
  • Posts: 286
  • Karma: +20/-1
    • View Profile
Re: Where is Persistent Zoom stored?
« Reply #1 on: October 18, 2018, 05:46:01 pm »
FYI It will be stored in the column SCALE in t_diagram table.

Can this be altered?

Yes you need to access Scale property from the Diagram Class.


HTH
Arshad
« Last Edit: October 18, 2018, 05:47:54 pm by Arshad »

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Where is Persistent Zoom stored?
« Reply #2 on: October 18, 2018, 06:05:04 pm »
FYI It will be stored in the column SCALE in t_diagram table.

Can this be altered?

Yes, you need to access Scale property from the Diagram Class.


HTH
Arshad
Thanks, Arshad, I just figured it out myself.  Its location implies that setting this makes it common for all viewers.

I guess, if there are specific diagrams that need to be set as a specific zoom/Scale level, we need to be able to discourage the users from altering it via the UI.

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