Author Topic: Controlling the order of exported model elements  (Read 1472 times)

Polymorph

  • EA User
  • **
  • Posts: 120
  • Karma: +4/-0
    • View Profile
Controlling the order of exported model elements
« 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!

qwerty

  • EA Guru
  • *****
  • Posts: 8969
  • Karma: +136/-124
  • I'm no guru at all
    • View Profile
Re: Controlling the order of exported model elements
« Reply #1 on: June 30, 2016, 06:38:18 am »
How do you export them?

q.

Polymorph

  • EA User
  • **
  • Posts: 120
  • Karma: +4/-0
    • View Profile
Re: Controlling the order of exported model elements
« Reply #2 on: June 30, 2016, 05:13:23 pm »
We use the standard EA document generator

Uffe

  • EA Practitioner
  • ***
  • Posts: 1072
  • Karma: +81/-5
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Controlling the order of exported model elements
« Reply #3 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. You may also be able to utilize template fragments and/or virtual documents. 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
My theories are always correct, just apply them to the right reality.

VKN

  • EA User
  • **
  • Posts: 158
  • Karma: +8/-0
    • View Profile
Re: Controlling the order of exported model elements
« Reply #4 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).

Polymorph

  • EA User
  • **
  • Posts: 120
  • Karma: +4/-0
    • View Profile
Re: Controlling the order of exported model elements
« Reply #5 on: June 30, 2016, 10:54:48 pm »
Yes - tree order does the trick. Thanks everyone  :)

qwerty

  • EA Guru
  • *****
  • Posts: 8969
  • Karma: +136/-124
  • I'm no guru at all
    • View Profile
Re: Controlling the order of exported model elements
« Reply #6 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.