Book a Demo

Author Topic: Importing partial models  (Read 3485 times)

briank

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Importing partial models
« on: August 03, 2005, 01:43:11 pm »
We are interested in "deep copying" some classes from one UML model to another. There doesn't appear to be a clear way of importing/exporting only portions of a model. We have been trying to copy/paste without much luck.

We did try importing the complete source model into the target model and then dragging objects that we want into a seperate package. Then, finally, delete the source package from the model. This seemed to work ok, but is it the only way to do this?

Thanks for any suggestions.

Brian.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Importing partial models
« Reply #1 on: August 03, 2005, 03:59:06 pm »
Hello Brian,

The recommended way to do this is using XMI export.  Just right click on a package in the project view and select Import/Export | Export Package to XMI File.

Then to copy it into another model repeat the process but instead select Import Package from XMI File.

Simon

briank

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Importing partial models
« Reply #2 on: August 04, 2005, 03:49:02 am »
Simon,

Thanks for the reply. We have tried this approach in the past that you recommend, but unless I'm missing something, this still imports the entire package and does not let me import only certain class definitions.

Do you know of a way to either export to an XMI file, or import from an XMI file, selective components and not the entire package?

Thanks,
brian

thomaskilian

  • Guest
Re: Importing partial models
« Reply #3 on: August 04, 2005, 04:28:16 am »
Not directly. You have to make a copy of your repository, drag everything of interest into a single package and export that. Maybe someone else knows a more elegant way, but I don't.