Book a Demo

Author Topic: Get Dirty/Saved diagram status  (Read 2905 times)

hln

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Get Dirty/Saved diagram status
« on: December 24, 2013, 08:25:36 pm »
Hi,

I am writing Sparx-addin and I need to notify to user to save diagrams which have been changed but they have not been saved.
My question: does Sparx have API to get dirty/saved status of a diagram?

Thanks.

EXploringEA

  • EA User
  • **
  • Posts: 172
  • Karma: +8/-0
    • View Profile
Re: Get Dirty/Saved diagram status
« Reply #1 on: December 24, 2013, 10:07:01 pm »
Not found one in years of writing AddIns - it is frustrating as it means you have to rely on the user to save diagrams.  What I do is to track the on context item change / modified events - depending on your application you could save the diagram on their behalf in the background.

Hope that helps.
EXploringEA - information, utilities and addins