Sparx Systems Forum

Discussion => Uml Process => Topic started by: Polymorph on June 30, 2016, 05:32:12 am

Title: Controlling the order of exported model elements
Post by: Polymorph on June 30, 2016, 05:32:12 am
I have a package containing multiple requirements that I need to export.

EA allows me to change the order of the model elements in the browser but what do I need to do in the template to ensure that this order is respected in the document?

I want to do this because some requirements are related and I don't want them to simply them to be placed in alphabetical order. Rather, I want a measure of control

Thanks all!
Title: Re: Controlling the order of exported model elements
Post by: qwerty on June 30, 2016, 06:38:18 am
How do you export them?

q.
Title: Re: Controlling the order of exported model elements
Post by: Polymorph on June 30, 2016, 05:13:23 pm
We use the standard EA document generator
Title: Re: Controlling the order of exported model elements
Post by: Uffe on June 30, 2016, 05:14:05 pm
Hello,


The Options tab of the Generate Documentation dialog has controls for ordering of packages, elements and diagrams. You can select alphabetical, tree order, creation date and modified date, and select ascending/descending.

That gives you precisely what you asked for, a measure of control. For full control you need to take charge of the document generation process itself, which typically involves a fair bit of scripting using the DocumentGenerator API (http://sparxsystems.com/enterprise_architect_user_guide/12.1/automation_and_scripting/document_generator_interface.html). You may also be able to utilize template fragments (http://sparxsystems.com/enterprise_architect_user_guide/12.1/report_generation/rtf_template_fragments.html) and/or virtual documents (http://sparxsystems.com/enterprise_architect_user_guide/12.1/report_generation/virtualdocuments.html). It all comes down to the structure in your model, so I'm afraid I can't give you a more specific answer.

But try the options in the dialog first, that might be all you need.

HTH,


/Uffe
Title: Re: Controlling the order of exported model elements
Post by: VKN on June 30, 2016, 05:46:36 pm
I think Polymorph wants the element sequence as shown in the project browser (i.e. Tree order - which isn't essentially have to be ascending or descending because elements can be moved using the arrow buttons on the project browser).
Title: Re: Controlling the order of exported model elements
Post by: Polymorph on June 30, 2016, 10:54:48 pm
Yes - tree order does the trick. Thanks everyone  :)
Title: Re: Controlling the order of exported model elements
Post by: qwerty on August 13, 2016, 07:39:43 pm
You find Attachments and other options below your reply window. There you can opt for notifications. Personally I use the "Show unread posts..." top left below the Hello.

q.