Book a Demo

Author Topic: How can I know the number of Swim Lanes  (Read 16610 times)

dangel

  • EA User
  • **
  • Posts: 74
  • Karma: +0/-0
    • View Profile
How can I know the number of Swim Lanes
« on: February 21, 2015, 11:03:23 am »
In which Tables can I found the information about Boundary Object like name, and its contents {Component1 + Component2}  ...

I think in t_Object under PDATA1,PDATA2  to find number of SWIMs,
 But I could not find the table contains the contents of this boundary,
is the only way to find coordinators  :-? ?


Regards,
« Last Edit: February 21, 2015, 03:21:49 pm by dangel »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How can I know the number of Swim Lanes
« Reply #1 on: February 21, 2015, 06:55:20 pm »
t_diagram.swimlanes

Quote
Something like this one:
locked=false;orientation=1;width=0;inbar=false;names=true;color=0; bold=false;fcol=0;;cls=0;SW1=330;SW2=343;SW3=116;
Probably not too difficult to decode this but definitely not important enough to be detailed here.

From my Inside book.

Now you just need to check the coordinates in t_diagramobjects.

q.

dangel

  • EA User
  • **
  • Posts: 74
  • Karma: +0/-0
    • View Profile
Re: How can I know the number of Swim Lanes
« Reply #2 on: February 22, 2015, 02:52:47 am »
i found
Code: [Select]
locked=false;orientation=0;width=0;inbar=false;names=false;color=0;bold=false;fcol=0;;cls=0;
all arguments is 0 :(

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How can I know the number of Swim Lanes
« Reply #3 on: February 22, 2015, 06:40:01 am »
You need to save the diagram before you run he query. Here's mine:

swimlanes;
locked=false;orientation=0;width=0;inbar=false;names=false;color=0;bold=false;fcol=0;tcol=-1;ofCol=-1;hl=1;cls=0;SW1=200;;


One swim lane, 200px wide.

q.

dangel

  • EA User
  • **
  • Posts: 74
  • Karma: +0/-0
    • View Profile
Re: How can I know the number of Swim Lanes
« Reply #4 on: February 23, 2015, 07:24:50 am »
Of course I have saved the diagram!  :o
« Last Edit: February 23, 2015, 07:35:18 am by dangel »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How can I know the number of Swim Lanes
« Reply #5 on: February 23, 2015, 07:37:48 am »
Then I would not know how EA can show the swimlane the next time when you open the diagram if it's all zero.

q.

dangel

  • EA User
  • **
  • Posts: 74
  • Karma: +0/-0
    • View Profile
Re: How can I know the number of Swim Lanes
« Reply #6 on: February 23, 2015, 07:48:57 am »
could you please send me your EA file?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: How can I know the number of Swim Lanes
« Reply #8 on: February 23, 2015, 10:34:19 am »
I think qwerty is talking about diagram swimlanes and dangel is asking about boundary element swimlanes.

For boundary elements, the number of horizontal swimlanes is stored in t_object.PDATA1 and vertical swimlanes in t_object.PDATA2. All swimlanes are equal width, i.e. a fraction of the total size of the element. To find out which elements are in which swimlane, you will need to check each diagram object individually against the calculated coordinates of each swimlane.
The Sparx Team
[email protected]

dangel

  • EA User
  • **
  • Posts: 74
  • Karma: +0/-0
    • View Profile
Re: How can I know the number of Swim Lanes
« Reply #9 on: February 23, 2015, 12:01:02 pm »
Yes KP you are right, but thank you qwerty.
I did not find the coordination of component 1, 2 . in which table can I find the location/position of each component & boundary : is it in t_diagramobject: LEFT,RIGHT,etc ?

Thanks
« Last Edit: February 23, 2015, 12:04:38 pm by dangel »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How can I know the number of Swim Lanes
« Reply #10 on: February 23, 2015, 06:00:16 pm »
This took a moment because if you have a single boundary on a diagram and change the number of swimlanes the diagram is not marked dirty and the changes are not saved (try yourself).

Anyhow: t_object.PDATA1 = horizontal and .PDATA2 = vertical swimlanes for a boundary object. Since they are evenly spaced you can calculate the line position from the dimensions in t_diagramobjects.

q.
« Last Edit: February 23, 2015, 06:01:42 pm by qwerty »