Hi all,

To complete the XMI section, after import procedure, here is the "export XMI" :
Select your .uml file, open it with Eclipse UML editor, and just save as .xmi (from File menu).
That's all folk,
regards
raphaël

Raphael FAUDOU a écrit :
Hi,

First we have to separate model data and graphical data.
TOPCASED stores model data in a .uml file and the graphical data (font, position, colors...) are stored in a different file (.umldi extension).

TOPCASED model format is based on the Eclipse UML2 plug-in which is XMI compliant.
It means that any XMI compliant file exported from a UML tool can be read by Eclipse UML2 editor (available in TOPCASED). It will allow getting model data, not not graphical data.

To import an XMI file, here is the complete procedure:
  1.  import your .xmi file into your TOPCASED project (in models directory for instance)
  2. right click on the the file and choose "open with UML model editor" (editor provided by the Eclipse UML2 plugin).
  3. The UML editor tries to open the UML model in a treeview. All elements that do not comply with UML2 last release are detected as errors and the editor can create markers to show you where the error is.
  4. Fix all the errors (most errors come from a bad compliance of the UML tool with the specification).
  5. When the XMI file is fully compliant with UML2, you do not have errors and you can validate the model. Now we have to rename its internal format in .uml extension so that TOPCASED can create the graphical data (.umldi extension).
    • copy your xmi file with extension .uml.
    • open your .uml file with text editor
    • remove <xmi: tags (at the very beginning and at the end). The first tag should now be <uml:model
    • modification of <uml:model tag to add the following information
  6. Create new model with TOPCASED and choose existing .uml model. Select your .uml model: TOPCASED find the model element. When creating on "finish" button, the .umldi file is created.
  7. Now you have to re created your diagrams. Drag and drop elements from the outline to the diagrams
If many people are interested, perhaps we could work on some automation for this procedure. Feel free to open a feature request.

regards
raphaël


[email protected] a écrit :
Hi

Is it possible to import (and export) XMI files to Topcased (2.5) and
how do we do ?

Thanks


Ce courriel (incluant ses éventuelles pièces jointes) peut contenir des informations confidentielles et/ou protégées ou dont la diffusion est restreinte. Si vous avez reçu ce courriel par erreur, vous ne devez ni le copier, ni l’utiliser, ni en divulguer le contenu à quiconque. Merci d’en avertir immédiatement l’expéditeur et d'effacer ce courriel de votre système. Astrium décline toute responsabilité en cas de corruption par virus, d’altération ou de falsification de ce courriel lors de sa transmission par voie électronique.
This email (including any attachments) may contain confidential and/or privileged information or information otherwise protected from disclosure. If you are not the intended recipient, please notify the sender immediately, do not copy this message or any attachments and do not use it for any purpose or disclose its content to any person, but delete this message and any attachments from your system. Astrium disclaims any and all liability if this email transmission was virus corrupted, altered or falsified.
---------------------------------------------------------
Astrium SAS (393 341 516 RCS Paris) – Capital: 16.587.728 EUR – Siège social: 6 rue Laurent Pichat, 75016 Paris, France

_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users



--
Raphaël FAUDOU

Image Signature IOC Raphaël FAUDOU
Responsable cellule Innovation / bureau méthodes
Head of Innovation & Method Definition
Embedded systems & critical systems
Atos Origin

Tel     : +33 (0)5 34 36 32 89
Tel     : +33 (0)6 10 53 50 44
Mail   : [email protected]
Atos Origin
6, Impasse Alice Guy
BP 43045
31024 Toulouse Cedex 3, France

P Avant d'imprimer cet e-mail, pensez à l'environnement. Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis.
P Please consider your environmental responsibility before printing this e-mail. This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.

_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

Reply via email to