Book a Demo

Author Topic: How to copy diagram between projects  (Read 10170 times)

Moschops

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
How to copy diagram between projects
« on: April 14, 2010, 12:56:28 am »
I right click on a diagram in the Project Browser and selected "Copy Diagram". I then open a second project and right click on the package I want to paste the diagram in, but the "paste diagram" option has vanished, as if the diagram has been wiped from the clipboard.

I tried to export just one diagram, but it seems that I have to export the whole project or nothing. Is it possible to just copy one diagram from one project to another?

Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Re: How to copy diagram between projects
« Reply #1 on: April 14, 2010, 01:40:28 am »
Have a look at this thread posted only yesterday and a few items down from your message.

http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1271085588

Moschops

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: How to copy diagram between projects
« Reply #2 on: April 14, 2010, 05:12:49 am »
So essentially, it's not possible to do easily? It either has to be a shared diagram, or I'll have to export the entire project, import that into the new project, and then cut away all the bits I don't want.

Paul Lotz

  • EA User
  • **
  • Posts: 248
  • Karma: +1/-0
    • View Profile
Re: How to copy diagram between projects
« Reply #3 on: April 14, 2010, 06:06:47 am »
Actually, you can do what you what quite simply.

The key is to use packages.  Put your diagram and its contents into a package (alternatively think namespace).  (Your diagram may actually reference multiple packages if it reuses elements elsewhere.)  Then either
1) right-click on the package(s) and use the Import/Export to XMI options
or
2) put the package(s) in version control and check it out where you need it.  If it is not going to be a shared package disconnect it from version control on the copied end.  Then you can modify it as needed.

Paul
« Last Edit: April 14, 2010, 06:07:46 am by pauljlotz »

Moschops

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: How to copy diagram between projects
« Reply #4 on: April 14, 2010, 06:47:09 pm »
Aha! Good idea. It's part of a package already, which I didn't want to export en masse, but I didn't think of making a new package with just this one diagram in. Cheers.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to copy diagram between projects
« Reply #5 on: April 14, 2010, 06:54:17 pm »
Just remember, if you export a package with only the diagram in, and you import that into your other project, you will end up with an empty diagram.

In order to successfully export the diagram you need to export all elements shown on that diagram as well.

Geert

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: How to copy diagram between projects
« Reply #6 on: April 19, 2010, 06:17:59 am »
Quote
Actually, you can do what you what quite simply.

Paul, good advice, but not really simple.
Simple is Cut, then Paste, and NOT have to wonder why you can't paste where you want to.

I'd vote for an enhancement that allowed exactly this,
rather than another UI workaround.
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Nizam Mohamed

  • EA User
  • **
  • Posts: 193
  • Karma: +1/-0
    • View Profile
Re: How to copy diagram between projects
« Reply #7 on: April 19, 2010, 09:59:23 am »
In 8.0 there are a couple of new features to simplify Copy / paste  or packages and/or elements.
please refer
copy package,
copy element(s).