Book a Demo

Author Topic: How to temporarily zoom a diagram programmatically ?  (Read 4416 times)

mateiacd

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
How to temporarily zoom a diagram programmatically ?
« on: June 11, 2021, 04:49:00 pm »
Hi,

How can I temporarily zoom a diagram, like the Ctrl+mouse wheel or the zoom + and - buttons are doing ?


 //I just want to temporarily zoom the diagram

 EA.Repository rep = ...; initialized before
 EA.Diagram dia = rep.GetCurrentDiagram();

// this changes the default diagram's zoom level and I don't want this!

 dia.Scale = 135; ??
 dia.Update();
 rep.ReloadDiagram(dia.DiagramID);

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to temporarily zoom a diagram programmatically ?
« Reply #1 on: June 11, 2021, 06:35:11 pm »
I don't think there's an API for this. You need to raise a feature request.

q.