Hello Laure, In gendoc 2, during the generation of diagrams with a loop, errors can be found for elements that have no diagram. The error message for the version 5.0.0 is following: << The 2nd tag "image" is incomplete attribute 'object' is not correctly filled.>> To have an explicit error message you can open a feature request in forge (http://gforge.enseeiht.fr/)which will be probably implemented for the next versions of Gendoc2. However it is preferable during a generation of diagrams to put conditions in order to exclude the elements with no diagram. You can use oclisUndefined or the method size() like this [if (p.getAllDiagrams()->size() > 0)] <image object=' [.../]'> </image> [/if] Or you can loop on all diagrams under an element, which is probably the best solution considering that an element can have several diagrams. [for (d:Diagram|p.getAllDiagrams())] <image object=' [d.getDiagramID()/]'> </image> [/for] Association of diagram with elements depends on the metamodels you use and not on Gendoc2. For UML you can go to make a tour http://www.omg.org/spec/UML/2.3/ I hope that answers your questions. Regards, Malick
-----Message d'origine----- De : [email protected] [mailto:[email protected]] De la part de Topcased user list where issues are discussed Envoyé : lundi 18 juillet 2011 10:39 À : [email protected] Objet : [Topcased-users] Display diagram with gendoc Hello , I post this message because i have met a problem about display a diagram in a gendoc template. In fact, i try to display a diagram on an element wich haven't one. The error displays during the generation is an error on the syntax of the image marker. In order to understand the root cause of my problem i have used an oclisUndefined, in adding this condition i am able to generate my document. Is it possible to change the error message in this case ? Moreover, have you a document which explain clearly which elements have an associated diagram or not ? I hope this remarks can help some people which have the same problem. Regards Laure TAMISIER _______________________________________________ Topcased-users mailing list [email protected] http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users ________________________________ 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 [email protected] http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users
