Book a Demo

Author Topic: Import Export  (Read 2693 times)

Graham_Labdon

  • EA User
  • **
  • Posts: 66
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Import Export
« on: October 05, 2007, 12:30:06 am »
Hi everyone
I have a bunch of diagrams in one model that I want to import into another model

I have tried placing them into a package and exporting it and the import into the target model.

These diagrams are sequence diagrams.

The import succeeds but all the diagrams show are the classes and their lifelines - not intetactions are shown.

Can anyone tell me what I am doing wrong?

Graham

gpc

  • EA User
  • **
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: Import Export
« Reply #1 on: October 22, 2007, 08:48:28 am »
Hi, You need to make sure that the classes, etc. are also contained within the 'exported' package otherwise these 'linkages' do get lost.

MrDX

  • EA User
  • **
  • Posts: 49
  • Karma: +0/-0
    • View Profile
Re: Import Export
« Reply #2 on: October 22, 2007, 09:08:38 pm »
Do you use the XMI Exporter?
I am using the XMI Exporter and have to use one package for each sequence diagram. Otherwise diagrams aren't exported.
If you found a bug in the XMI file, please post it into this thread:
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.pl?board=suggestions;action=display;num=1190806010

gpc

  • EA User
  • **
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: Import Export
« Reply #3 on: October 23, 2007, 01:56:45 am »
Response from Sparx on a similar recent query:
When drawing a Sequence diagram in EA, two important points to remember are :

1. The lifelines cannot be elements - they need to objects. Even though EA allows to drop the elements as lifelines on a sequence diagram, it is not strictly UML.
2. Also, EA expects the lifelines to be in the same package as that of the diagram.

These conditions ensure that the Sequence Diagrams round-trip without any changes. Now, if for some reason, the elements and the diagram needs to be in different package then the round-trip may not be successful. A work-around this issue is to drag-and-drop the classes into the Sequence
Diagram as objects and then drawing the messages between them.  Select the option "as Instance of Element(Object)" in the "Paste Element" dialog when the class is dragged and dropped on to the Sequence Diagram.