Author Topic: Free sorting and automation  (Read 4209 times)

Monsieur

  • EA User
  • **
  • Posts: 142
  • Karma: +0/-0
    • View Profile
Free sorting and automation
« on: June 08, 2015, 11:58:35 pm »
Hello Folks,

I am doing some import export work within EA.
Here is my problem:
  • User work with free sorting (big feature, allow them to reorder everything in order to get documents as wanted)
  • I dumped the model into a XML file in order to interact with other tools
  • I am used to do a big SELECT
  • Users want to keep their free sorting
  • SELECT does NOT keep order.

And i am ripping my hair off. I do not find this free sorting anywhere in the base. Where is it? How to keep free sorting? How to dump a model keeping this treeorder? I thought it was Tpos... but it is not! What is this Tpos?!

I tried scripting this but it only order by ID or name...
Thanks for the help!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Free sorting and automation
« Reply #1 on: June 09, 2015, 01:21:26 am »
Depending on the type (package/element) it's tpos or treepos. However, EA has some special voodoo how it arranges elements in the project browser to keep them in groups (of diagrams/packages/elements). I once described that in a thread (very long ago).

q.

Monsieur

  • EA User
  • **
  • Posts: 142
  • Karma: +0/-0
    • View Profile
Re: Free sorting and automation
« Reply #2 on: June 09, 2015, 01:26:04 am »
Quote
Depending on the type (package/element) it's tpos or treepos. However, EA has some special voodoo how it arranges elements in the project browser to keep them in groups (of diagrams/packages/elements). I once described that in a thread (very long ago).

q.

I am sorry Q, but my Tpos value does not reflect the treeposition order (not at all).
Here is Tpos order in my tree view : 1;2;4;6;3;5;7;8 (wich mean 1st object has Tpos = 1; 2nd object has Tpos = 2; 3rd object has Tpos = 4; and weirdly so on.)
I don't understand why the Tpos does not reflect the TreePostion.
Is that normal?
Is there a way to "reset" the tpos value?

M.
Recovery/Clean does not solve the problem
« Last Edit: June 09, 2015, 01:40:02 am by damien.reche »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Free sorting and automation
« Reply #3 on: June 09, 2015, 07:24:38 am »
Move one of the elements manually and the TPos should be set "as seen" by EA.



q.
« Last Edit: June 09, 2015, 07:28:51 am by qwerty »

Monsieur

  • EA User
  • **
  • Posts: 142
  • Karma: +0/-0
    • View Profile
Re: Free sorting and automation
« Reply #4 on: June 09, 2015, 05:24:21 pm »
Quote
Move one of the elements manually and the TPos should be set "as seen" by EA.



q.
--> I can't see the image, if i didn't quoted you i wouldn't even have this link (which i can't consult).


Okay so :
  • Move one element
  • Quit
  • Move the element back to place

That seem to reset the Tpos in the Database.[/s]

You have to order by type/stereotype AND THEN by Tpos. That is part of the Voodoo magic of EA. So the Tpos will never (or with a lot of luck) reset to 1;2;3;4;5... he will reset in something like : group 1 : 2;4;5 + group2 : 1;3 ...

I still don't understand how does EA choose the order between elements (Diagram first, then requirement, then change, ...). If someone have a clue?

Any idea what could have mixed up the Tpos?

« Last Edit: June 10, 2015, 05:41:58 pm by damien.reche »