file Create notes and invariants

10 years 9 months ago #88 by tma
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 with the description defined in the documentation.
To describe your model, you can use Microsoft Word and define this documentation.

Steps:
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.

File Attachment:

File Name: createNote...ants.zip
File Size:1 KB
Attachments:
The following user(s) said Thank You: andy

Please Log in or Create an account to join the conversation.

Moderators: chmcma
Time to create page: 0.032 seconds
^ Back to Top