Book a Demo

Author Topic: Copy from one project to another  (Read 2488 times)

rtcary

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Copy from one project to another
« on: April 04, 2007, 03:29:13 pm »
Is there a way to copy the elements on one diagram in a project to a diagram in another project.  I tried the "copy to clipboard", however when I get to the second project I am told EA cannot find the source.

Jan ´Bary´ Glas

  • EA User
  • **
  • Posts: 408
  • Karma: +0/-0
  • Bary
    • View Profile
Re: Copy from one project to another
« Reply #1 on: April 04, 2007, 10:22:36 pm »
You may perform copies between models (and repositories) on package level. Use XMI export/import feature.
If you want the same elements there not new ones, and you want to synchronize in the future, use controlled packages.

EA Help may help in details.
Jan 'Bary' Glas

sl@sh

  • EA User
  • **
  • Posts: 85
  • Karma: +0/-0
    • View Profile
Re: Copy from one project to another
« Reply #2 on: April 04, 2007, 10:33:08 pm »
Copying diagram elements won't work since these are only visualizations from objects within the project browser. The error message you got refers to the fact that within your new project the objects don't exist yet, and the diagram elements thus refer to non-existant objects within that project.

The diagram context menu items are misleading in that they talk about pasting 'objects' when truly only an object's visualization can be pasted.

If the objects you are trying to copy are classes, you can generate code, then import the resulting code into the diagram within the new project. That will get you both the objects and their visualizations, but not the diagram layout.

There's a 'copy diagram to clipboard' function, but AFAIK that one only serves for pasting the diagrams into documents as I don't know of a way to paste a diagram into a project ...