Skip to main content



      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 06:12 Go to next message
Eclipse UserFriend
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 06:15] by Moderator

Re: Papyrus XML Export for implementation into Plant Simulation [message #1797612 is a reply to message #1797532] Fri, 02 November 2018 13:25 Go to previous messageGo to next message
Eclipse UserFriend
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 13:50 Go to previous message
Eclipse UserFriend
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: Sun Jul 27 14:31:46 EDT 2025

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

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

Back to the top