Book a Demo

Author Topic: Deleted a Component Model by Accident  (Read 4304 times)

Bernie

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Deleted a Component Model by Accident
« on: December 08, 2011, 09:39:14 am »
I am a new user of EA and while cleaning up a model I accidently deleted the Component Model.  I have the last diagram to redraw from, but I was wondering how to recover if possible.  All the internal structures are still here just not the model drawing.  Thanks

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Deleted a Component Model by Accident
« Reply #1 on: December 08, 2011, 05:57:20 pm »
Backup?
In fact your are lucky you only deleted the diagrams and not the actual elements. Now you can just drag the elements onto a new diagram.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Deleted a Component Model by Accident
« Reply #2 on: December 08, 2011, 07:22:13 pm »
What I do in such cases is the following:
  • Create a scratch model from the XMI backup.
  • Create a dummy package somewhere inside.
  • Locate the missing element(s).
  • Move the respective elements into the dummy package.
  • Export the dummy package as temp XMI.
  • Import the temp package into the real model.
  • Move the elements where they belong to.
  • Delete the temp package.
  • Delete the scratch model.
q.

Bernie

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Deleted a Component Model by Accident
« Reply #3 on: December 09, 2011, 05:33:54 am »
Thanks.  Much appreciated.