Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Daniel Temby on April 17, 2008, 04:43:24 pm

Title: Use Case Composite
Post by: Daniel Temby on April 17, 2008, 04:43:24 pm
Hi,

Through the autmation interface:

I have created a sequence diagram for each of my use cases.  Each sequence diagram has the Use Case as its parent element.

I then set the subtype of the UseCase to 8 in an attempt to make it a composite.

What am I missing? As this does not seem to work vi automation, if I use Advanced->Make Composite via the GUI everything works fine and as far as I can see the only database change made by EA is to set the subtype of the UseCase element to 8
Title: Re: Use Case Composite
Post by: Daniel Temby on April 17, 2008, 05:50:58 pm
I found part of the answer, EA adds an entry to the xref table to link the composite use case with its diagram.

Unfortunately there doesn`t seem to be a way to add to the xref table through the automation interface.

Any ideas ????
Title: Re: Use Case Composite
Post by: «Midnight» on April 17, 2008, 09:43:11 pm
You will probably have to do this via a direct OLEDB connection to the database. Be careful and you will probably be OK.

Search the forum for any additional help on opening the database. This has been covered in detail several times. [Although the documentation is good enough if you've got experience in this area.]

David
Title: Re: Use Case Composite
Post by: thomas.kilian on April 17, 2008, 10:26:43 pm
Which is honestly scrap by design. Why have an API if you're force to fiddle with the database in the end?
Title: Re: Use Case Composite
Post by: «Midnight» on April 17, 2008, 11:39:48 pm
But if this were improved, even a tiny bit, we'd have less to complain about. How would we fill the empty hours?

David   :-X