Author Topic: Working with swimlines throught COM (EA)  (Read 4525 times)

futuros

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Working with swimlines throught COM (EA)
« on: August 30, 2005, 01:00:59 am »
Hi,

I have a big problem. I have swimlines defined on the activity diagram, where swimlines have names and they are mapped on theirs classifiers. Is there any way how to parse this informations using Automation Interface ?

thank you very much for help

Marco Zapletal

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Working with swimlines throught COM (EA)
« Reply #1 on: August 30, 2005, 03:16:59 am »
you should work with partitions instead of swimlanes. they can be accessed through the automation interface like other elements.

note: in the uml metamodel exist no swimlanes - what you may be know from rational rose as swimlanes are in fact partitions.

regards,

marco

TomO

  • EA Administrator
  • EA User
  • *****
  • Posts: 79
  • Karma: +6/-0
  • EA - Bridging the gap between Business and IT
    • View Profile
    • Sparx Systems
Re: Working with swimlines throught COM (EA)
« Reply #2 on: August 31, 2005, 07:08:22 pm »
You can access very limited functionality of the swimlanes in a diagram through the automation interface.

The property Diagram.Swimlanes returns a string like the one below:

locked=false;orientation=0;width=0;inbar=false;names=false;color=0;bold=false;fcol=0;;cls=0;SW1=192;SW2=277;SW3=242;SW4=165;SW5=200;

There are few uses for it from a Automation point of view except if you wanted to know where the swimlanes were,  from that you could work out what elements are inside them.
As far as access the names etc. there is no current way of doing it via automation.

I hope this helps a little.
TomO
« Last Edit: August 31, 2005, 07:43:48 pm by TomO »

futuros

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Working with swimlines throught COM (EA)
« Reply #3 on: September 02, 2005, 12:24:32 am »
Thanx for help. As I see, there is a way how to parse swimline name. But is there an way to parse swimline classfier ?