XMI export/import

Support

I tried to export to XMI and import to an empty project, got the following error:

System.NullReferenceException: Object reference not set to an instance of an object.

at SoftwareIdeasModeler.Core.Xmi.NewXmiImporter.ProcessGeneralization(Model model, ModelElement item, Generalization generalization)

at SoftwareIdeasModeler.Core.Xmi.NewXmiImporter.ProcessElement(Model model, PackagedElement element)

at SoftwareIdeasModeler.Core.Xmi.NewXmiImporter.ProcessElement(Model model, PackagedElement element)

at SoftwareIdeasModeler.Core.Xmi.NewXmiImporter.ProcessModel(XmiUmlModel model)

at SoftwareIdeasModeler.Core.Xmi.NewXmiImporter.ProcessFile(XmiFile file)

at SoftwareIdeasModeler.Core.Xmi.NewXmiImporter.ImportFile(String fileName)

at SoftwareIdeasModeler.Core.Xmi.XmiImporter.ImportFile(String fileName)

at SoftwareIdeasModeler.MainForm.importXMIToolStripMenuItem_Click(Object sender, EventArgs e)

at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)

at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)

at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)

at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)

at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ToolStrip.WndProc(Message& m)

at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

But I don't really understand how XMI export/import works? Should I be able to export and import a specific diagram or is it always the entire project or what. Also need to mention that I solely uses the sysML diagrams currently.

5 June 2013 13:12:19 Tomas Sandkvist

Add Comment

Dusan Rodina - softwareideas.net 5 June 2013 14:09:42

I will check the exception and fix it. However, currently SIM supports XMI export/import only for UML. So only UML elements will be imported from SysML diagrams. I plan to add support for SysML XMI soon.

XMI import adds new elements to the active (open) project.

Tomas Sandkvist 6 June 2013 11:40:19

RE:

So you mean that I first have to select some elements and it is those elements that is exported?

So maybe that is what I did wrong, I just selected a diagram and exported

Dusan Rodina - softwareideas.net 6 June 2013 23:40:44

RE: RE:

In the current version, all elements from an active diagram are exported.

If you import the XMI file, its full content is imported to the active project.

Currently, XMI is supported only for UML diagrams, SysML will be added in one of next releases.

I want to also improve customization of XMI import/export soon. Then you will be able to choose what will be imported/exported.

Sikandar Ali 27 October 2024 15:20:54

RE: RE: RE:

i have issues when i import (xmi) the activity diagram it import it and the diagram shows tool for editing is class digram and it make the classDiagram1 (diagram) but its activity diagram

Sikandar Ali 8 November 2024 0:08:56

RE:

when did you guys solve this issue

Dusan Rodina - softwareideas.net 8 November 2024 9:23:24

RE: RE:

Hello,

Sorry for the late response. Could you please send us an example of the problematic XMI file to softwareideas@softwareideas.net for analysis?