! You are browsing an archive website for Modelio 1.x. Click here to visit the official website for most recent versions of Modelio

Home Support Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Create notes and invariants Forum is locked
(0 viewing) 
Develop and share Jython scripts.
Go to bottom
TOPIC: Create notes and invariants
Junior Boarder
Posts: 29
User Offline Click here to see the profile of this user
Create notes and invariants 6 Years, 8 Months ago  
The attached script allows the creation of notes or invariants on some elements.

If you launch it on the root package,
- 'description' notes will be created on Package, Class, Attribute and AssociationEnd
- 'summary' notes will be created on Package and Class
- 'invariant' constraints will be created on Class

Why do you use this macro?
The DocumentPublisher module has a service to reverse documentation and update the model withthe description defined in the documentation.
To describe your model, you can use Microsoft Word and define this documentation.

1. Add a model in your project.
2. Launch the script: Notes and constraints are added on elements. In this example, <TBD> is added in the note content.
3. Generate the documentation with DocumentPublisher. Use the AnalysisAndDesign template.
4. Edit the document with Microsoft Word. Complete the documentation.
5. Launch the Reverse Content command: your model is documented.

You can complete this script for other elements or other notes.

This attachment is hidden for guests. Please login or register to see it.
Logged Logged
Last Edit: 2011/01/21 11:58 By tony.
  The topic has been locked.
Go to top