| Re: [mdt-papyrus.dev] writing a program which creates .notation & .di file out of an .uml file |
|
Dear Chris, I cc to your message Florian who is working in my team and who has done some work that may help you in generating automatically diagrams from a
model. BTW, in order this discussion can benefi to all Papyrus uisers, it would be nice to continue it on the Papyrus Forum. Florian, pleaseâ Thanks. Cheersâ SÃbastien. ------------------------------------------------------------------------------------------------------------------------------------------------ SÃbastien GÃrard +33 (0)1 69 08 58 24 / +33(0)6 88 20 00 47 CEA Saclay Nano-INNOV Institut CARNOT CEA LIST DILS/Laboratoire
dâIngÃnierie dirigÃe par les modÃles pour les SystÃmes EmbarquÃs (LISE), Point Courrier nÂ174 91 191 Gif sur Yvette CEDEX De : mdt-papyrus.dev-bounces@xxxxxxxxxxx [mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx]
De la part de chris miesel THANK YOU :) Gesendet: Donnerstag, 19. April 2012 um 13:41 Uhr Hello Chris, Hereâs the minimum xmi code for drawing a Transition between two nodes in a Papyrus State Machine
diagram : <edges
xmi:type="notation:Connector"
type="7000"
source="_K9alcIoREeG9Mu1FwC8BkA"
target="_LWjeMYoREeG9Mu1FwC8BkA">
<element
xmi:type="uml:Transition"
href="model.uml#_MekPIIoREeG9Mu1FwC8BkA"/>
<bendpoints
xmi:type="notation:RelativeBendpoints"/> </edges> -
SourceAnchor and TargetAnchor are not required -
The bendpoints tag is required, but can be empty The problem may come from your âsourceâ or âtargetâ ID (If the corresponding notation Nodes donât
exist, you canât draw an edge between them). Note that all edges must be located at the root of the Diagram, even if they are actually located
in a sub-state machine: <notation:Diagram>
<children> ...
</children>
<edges> ...
</edges> </notation:Diagram> Hope this helps, Camille __________________________ Camille Letavernier +33 (0)1 69 08 00 59 -
camille.letavernier@xxxxxx CEA LIST - Laboratoire d'IngÃnierie dirigÃe par les modÃles pour les SystÃmes EmbarquÃs (LISE) De :
mdt-papyrus.dev-bounces@xxxxxxxxxxx
[mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx]
De la part de chris miesel hi everybody, Explanation to my Transition-Creator: For each Transition I add a String like this on the write place in the .notation-file. I fill the source=... and
target=... and also the href="" with the references of the source-state, the target-state and the transition. <edges xmi:type="notation:Connector" type="7000" source="..." target="..." lineColor="0"> What is wrong here? How important are the Source- and TargetAnchor tags and the coordinates in the benpoints tag?
You see I am in exasperation :( Can anybody help me with this problem or show me a place in which I can search the solution? Thank you and greetings,
Chris p.s. this is my first experience with a mailing list and i hope my english isn't too bad
|