Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Papyrus XML Export for implementation into Plant Simulation
Papyrus XML Export for implementation into Plant Simulation [message #1797532] Thu, 01 November 2018 10:12 Go to next message
Tobias Nacho is currently offline Tobias NachoFriend
Messages: 2
Registered: September 2018
Junior Member
Hey guys,

At the moment I try to Export a SysMl diagram (in XML) so that I can import it into Plant Simulation.
However it doesn´t work. I think it´s because of the XML structure. Is it possible to transfer the structre so that Plant Simulation can read it?

For example when I use a XML file with the following strucuture than it works:

<?xml version="1.0" encoding="utf-8"?>
<koordinaten>
<!-- Tabelle item -->
<item>
<id>2</id>
<karte>2</karte>
<bezeichnung>Rostock</bezeichnung>
<x>418</x>
<y>387</y>
<punkte>5</punkte>
<nutzer>0</nutzer>
</item>
<item><id>3</id><karte>3</karte><bezeichnung>Dithmarschen</bezeichnung><x>400</x><y>300</y><punkte>18</punkte><nutzer>1</nutzer></item><item>
<id>4</id>
<karte>3</karte>
<bezeichnung>Oderbruch</bezeichnung>
<x>535</x>
<y>424</y>
<punkte>18</punkte>
<nutzer>1</nutzer>
</item>
<item>
<id>5</id>
<karte>3</karte>
<bezeichnung>Oder</bezeichnung>
<x>558</x>
<y>459</y>
<punkte>18</punkte>
<nutzer>1</nutzer>

.
.
.
.



Thank you in advance for your help!

PS: Attached you can see the test file.

[Updated on: Thu, 01 November 2018 10:15]

Report message to a moderator

Re: Papyrus XML Export for implementation into Plant Simulation [message #1797612 is a reply to message #1797532] Fri, 02 November 2018 17:25 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 461
Registered: March 2011
Location: Paris Saclay, France
Senior Member
Hi,

while both files are XML files, the underlying meta-model is very different. Unless Plant Simulation has some import capabilities from UML or SysML, you can't read the Papyrus XML files.

Ansgar
Re: Papyrus XML Export for implementation into Plant Simulation [message #1797615 is a reply to message #1797612] Fri, 02 November 2018 17:50 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

You appear to be confusing metamodel levels.

Papyrus supports definition of UML/SysML models; the metamodel of your runtime model.

Your example Plant model looks like a runtime model.

With care it should be possible to export the Papyrus UML to provide the Ecore (and/or XSD) for your XML.

You could use Papyrus to enter your runtime models as Instance Diagrams, but that would be pretty crazy. Instance diagrams are appropriate for simple examples, not for production volumes.

Regards

Ed Willink
Previous Topic:Multiplicity of an association class is not visible
Next Topic:Profile application
Goto Forum:
  


Current Time: Fri Apr 26 06:36:04 GMT 2024

Powered by FUDForum. Page generated in 0.03961 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top