:(
You can try in your template before the "for" :
[di::PageRef.allInstances().emfPageIdentifier->select(oclIsTypeOf(notation::Diagram))->asOrderedSet)/]
[di::PageRef.allInstances().emfPageIdentifier->select(oclIsTypeOf(notation::Diagram))->asOrderedSet()->sortedBy(oclAsType(notation::Diagram).name)/]
[for (d : notation::Diagram | 
di::PageRef.allInstances().emfPageIdentifier->select(oclIsTypeOf(notation::Diagram))->asOrderedSet()->sortedBy(oclAsType(notation::Diagram).name))]

Can you execute and send us the trace generated in the document ?

Regards

Tristan FAURE

De : topcased-users-boun...@gforge.enseeiht.fr 
[mailto:topcased-users-boun...@gforge.enseeiht.fr] De la part de Topcased user 
list where issues are discussed
Envoyé : mercredi 22 février 2012 13:46
À : topcased-us...@gforge.enseeiht.fr
Objet : Re: [Topcased-users] Question on order of diagrams when using GenDoc2 
for TOPCASED 5.1.0

Hi Tristan,

thank you for your fast reply!
Unfortunately it did not work. TOPCASED does not report any errors but after 
the generation, the document is empty.
No diagrams are in the document, only the content from the template.
To ensure that it is not a problem of my customization, I tried it now for the 
"original" template that is delivered with TOPCASED, same problem there.
It looks like the query you have sent me returns no diagrams any more...

Any idea what my problem is?


Best Regards

Oliver Kurz


Von:

Topcased user list where issues are discussed 
<topcased-us...@gforge.enseeiht.fr<mailto:topcased-us...@gforge.enseeiht.fr>>

An:

"topcased-us...@gforge.enseeiht.fr<mailto:topcased-us...@gforge.enseeiht.fr>" 
<topcased-us...@gforge.enseeiht.fr<mailto:topcased-us...@gforge.enseeiht.fr>>, 
"topcased-users@lists.gforge.enseeiht.fr<mailto:topcased-users@lists.gforge.enseeiht.fr>"
 
<topcased-users@lists.gforge.enseeiht.fr<mailto:topcased-users@lists.gforge.enseeiht.fr>>

Datum:

22.02.2012 11:16

Betreff:

Re: [Topcased-users] Question on order of diagrams when using GenDoc2        
for TOPCASED 5.1.0


________________________________



Hi Oliver,
The norm does not guarantee the order of the elements in the collection.
What you can do is using the sortedBy method.
In your example :
[for (d : notation::Diagram | 
di::PageRef.allInstances().emfPageIdentifier->select(oclIsTypeOf(notation::Diagram))->asOrderedSet()->sortedBy(oclAsType(notation::Diagram).name))]

Can you tell me if it works for you ?

Regards

Tristan FAURE

De : 
topcased-users-boun...@gforge.enseeiht.fr<mailto:topcased-users-boun...@gforge.enseeiht.fr>
 [mailto:topcased-users-boun...@gforge.enseeiht.fr] De la part de Topcased user 
list where issues are discussed
Envoyé : mercredi 22 février 2012 10:19
À : 
topcased-users@lists.gforge.enseeiht.fr<mailto:topcased-users@lists.gforge.enseeiht.fr>
Objet : [Topcased-users] Question on order of diagrams when using GenDoc2 for 
TOPCASED 5.1.0

Hi,

I'm using TOPCASED to model parts of our system.
So I created a model with several diagrams (using the nice Papyrus editors).
The next step is, to send out the diagrams to reviewers, that do not use 
TOPCASED but need to review the diagrams and the documentation, that I attached 
to the diagrams.

Therefore I use GenDoc2 to generate a Word (docx) file. Customizing the 
template that this delivered with TOPCASED 5.1 was no problem so far, but I 
have one problem:
-> each time I press "generate Document" a Word file with a different order of 
diagrams is created :-(

Question: How can I influence/define an order of diagrams in the generated Word 
document?

Info: I'm using the following script from the template:
[for (d : notation::Diagram | 
di::PageRef.allInstances().emfPageIdentifier->asOrderedSet())]


Mit freundlichen Grüßen / Best Regards

Oliver Kurz

Entwicklung Produkte / Product Development
Steuerungssysteme / Control Systems
Requirements Engineer

Pilz GmbH & Co. KG, Sichere Automation
Felix-Wankel-Straße 2, 73760 Ostfildern, Deutschland/Germany

Telefon +49 (07 11) 34 09-7058
E-Mail: mailto:o.k...@pilz.de, Internet: 
http://www.pilz.com<http://www.pilz.com/>



[http://www.pilz.com/de/company/news/sub/company/articles/05280/index.de.jsp]<http://www.pilz.com/de/company/news/sub/company/articles/05280/index.de.jsp>



Geschäftsführung: Renate Pilz, Susanne Kunschert, Thomas Pilz
Pilz GmbH & Co. KG, Sitz: Ostfildern, HRA 210 893, Amtsgericht Stuttgart
Kompl. Ges. Peter Pilz GmbH, Sitz: Ostfildern, HRB 210 612, Amtsgericht 
Stuttgart
Umsatzsteuer: ID-Nr. DE 145 355 773

This email is intended solely for the use of the named address(es). Any 
unauthorised disclosure, copying or distribution of these confidential 
information contained therein, or the taking of any action based on it, is 
prohibited. The sender disclaims any liability for the integrity of this email. 
Legally binding declarations must be in written form.

Umweltschutz liegt uns am Herzen! - Bitte denken Sie an unsere Umwelt, bevor 
Sie diese E-Mail drucken.
We do care about the environment! - Please consider the environment before 
printing this e-mail.

________________________________

Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité du groupe Atos ne pourra être 
engagée quant au contenu de ce message. Bien que les meilleurs efforts soient 
faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne 
donne aucune garantie à cet égard et sa responsabilité ne saurait être engagée 
pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos group liability cannot be triggered for the 
message content. Although the sender endeavors to maintain a computer 
virus-free network, the sender does not warrant that this transmission is 
virus-free and will not be liable for any damages resulting from any virus 
transmitted._______________________________________________
Topcased-users mailing list
Topcased-users@lists.gforge.enseeiht.fr<mailto:Topcased-users@lists.gforge.enseeiht.fr>
http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users



[http://www.pilz.com/de/company/news/sub/company/articles/05280/index.de.jsp]<http://www.pilz.com/de/company/news/sub/company/articles/05280/index.de.jsp>



Geschäftsführung: Renate Pilz, Susanne Kunschert, Thomas Pilz
Pilz GmbH & Co. KG, Sitz: Ostfildern, HRA 210 893, Amtsgericht Stuttgart
Kompl. Ges. Peter Pilz GmbH, Sitz: Ostfildern, HRB 210 612, Amtsgericht 
Stuttgart
Umsatzsteuer: ID-Nr. DE 145 355 773

This email is intended solely for the use of the named address(es). Any 
unauthorised disclosure, copying or distribution of these confidential 
information contained therein, or the taking of any action based on it, is 
prohibited. The sender disclaims any liability for the integrity of this email. 
Legally binding declarations must be in written form.

Umweltschutz liegt uns am Herzen! - Bitte denken Sie an unsere Umwelt, bevor 
Sie diese E-Mail drucken.
We do care about the environment! - Please consider the environment before 
printing this e-mail.

<<inline: image001.jpg>>

_______________________________________________
Topcased-users mailing list
Topcased-users@lists.gforge.enseeiht.fr
http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users

Reply via email to