如何将SysML模型(XMI格式)导入纸莎草纸? [英] How do I import a SysML model (in XMI format) to Papyrus?

查看:393
本文介绍了如何将SysML模型(XMI格式)导入纸莎草纸?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个XMI 2.1格式的SysML模型,从Enterprise Architect导出。

I have an XMI 2.1 formatted SysML model, exported from Enterprise Architect.

我正在评估 Papyrus 作为备用模型IDE。我想将我的XMI文件导入纸莎草纸,包括所有结构和行为块。

I'm evaluating Papyrus as an alternate model IDE. I'd like to import my XMI file into Papyrus, including all structural and behavioral blocks.

这是我试过的:


  1. 创建一个新的纸莎草纸项目。

  2. 右键单击项目,选择导入,然后浏览到我的XMI文件。

但是,这只是包含在纸莎草计划中的XMI文件。如果我打开它,我将模型元素看作XML。

However, this just includes the XMI file in the Papyrus project. If I open it, I see the model elements as XML.

Papyrus是否支持导入XMI?如果是这样,我该如何实现?

Does Papyrus support importing XMI, and if so, how do I accomplish this?

推荐答案

最近我遇到了一个类似的问题,尽管使用UML,所以你的里程可能会有所不同。

I worked through a similar problem recently, though with UML, so your mileage may vary.

我用一个关于Eclipse EMF的提示解决了这里: http://www.eclipse.org /forums/index.php?t=msg&goto=606949&S=333b8c3faacad6b950cf6247312f9c3e

I solved it with a hint regarding the Eclipse EMF from here: http://www.eclipse.org/forums/index.php?t=msg&goto=606949&S=333b8c3faacad6b950cf6247312f9c3e

由于SysML是UML2的方言,您应该能够创建一个新的EMF项目;在项目创建向导中,您将看到导入XMI文件的选项。

Since SysML is a dialect of UML2, you should be able to create a new EMF project; and in the project creation wizard, you will be presented with the option to import your XMI file.

这篇关于如何将SysML模型(XMI格式)导入纸莎草纸?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆