Hi Henrik,

There is any document/tutorial on how to create/customize generation templates.
In order to use templates with SysML, you need to add an extension for it, that's why I advice you to check out the existing templates from the CVS instead of using jar files.

Existing templates are available here: :pserver:[email protected]:/cvsroot/gendoc-library
As you said there is no template for SysML. Some informations to do it:

1 - Write your template according to the SysML metamodel. About the acceleo language, take a peek at the Acceleo documentation: http://www.acceleo.org/pages/introduction/en
2 - Keep the property: file="<%getOutputFile(getRootContainer(getProperty("root_container")), getProperty("resultFileName"))%>" %>
3 - Add an extension for your template in the plugin.xml file:
<extension
         point="org.topcased.gendoc.model2docbook.docGenerators">
  <docGenerator
            generatorFile="src/templates/your_template.mt"
            id="your_template_id"
            images="false" (true if your template needs images generation)
            metaModel="http://www.topcased.org/2.0/sysML"
            modelExtension="sysml"
            name="name_of_your_template"
            technologyType="Acceleo">
   </docGenerator>
 </extension>

4 - Then you could export your plugin and install it into your platform. It will be available for sysml models.

Hope it helps.

Regards,

Emilien

[email protected] a écrit :
Hi.

If have sucessfully completed the generation of a Word document from my SysML model based on the excellent tutorial on the Topcased website. 
I now have the need to tweek the generator templates for GenDoc and was wondering if there are any documentation/tutorial on how to customize or create a plugin extension. 

I have tried altering some of the files in the Atos template jar, but I must be missing some details as the generator templates are only available in  UML models not in SysML models.

I hope you can help because this is a very usefull tool for me.

Kind Regards
Henrik Jensen



_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users


  

--
Emilien PERICO
Ingénieur - Atos Origin
Tel : 05 34 36 34 49
www.atosorigin.fr
Développement durable, anticipons pour notre avenir / Sustainibility, advance our future
P N'imprimez ce mail que si nécessaire / please consider your environmental responsibility 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 Origin ne pourra être recherché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 recherché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 Origin group liability cannot be triggered for the message content. Although the sender endeavours 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/mailman/listinfo/topcased-users

Reply via email to