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
               o xmi:version="2.1"
                 xmlns:xmi="http://schema.omg.org/spec/XMI/2.1";
                 xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML";
               o check that there is a xmi:id. It it not the case, add
                 it like taht : xmi:id="12345"
  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


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

Reply via email to