Sparx Systems Forum

Enterprise Architect => Suggestions and Requests => Topic started by: Jonathan Lubach on June 18, 2013, 05:11:57 pm

Title: Difference "Add Element" via Diagram & via Browser
Post by: Jonathan Lubach on June 18, 2013, 05:11:57 pm
Hi there,

is there a reason why the two "add"-commands

- drag element from toolbox to a diagram
- add element via symbol/context menu in project browser

do behave different.

Why does the dragging onto a diagram evaluates the project template package and the project browser command does not?

Can anybody explain, otherwise for me this would bring up a change request.

Thanks!
Jonathan
Title: Re: Difference "Add Element" via Diagram & via Bro
Post by: qwerty on June 18, 2013, 08:11:01 pm
The answer is probably EAUI. EA is not very orthogonal.

q.
Title: Re: Difference "Add Element" via Diagram & via Bro
Post by: Jonathan Lubach on June 26, 2013, 10:18:48 pm
Okay, so there seems to be no liable reason for this behaviour.

I'll try to do a work-around listening to the EA_OnPostNewElement-event in the automation interface.

Can anybode tell me, where to find the link for the Project Template Package in the .eap-Database? (table name, field name...?)

Thanks!
Jonathan
Title: Re: Difference "Add Element" via Diagram & via Bro
Post by: Geert Bellekens on June 27, 2013, 04:42:16 pm
Code: [Select]
select * from t_package p
join usys_system u on u.Value = p.Package_ID
where property = 'TemplatePkg'

Regards

Geert
Title: Re: Difference "Add Element" via Diagram & via Bro
Post by: Jonathan Lubach on July 02, 2013, 01:48:40 am
Quote
Code: [Select]
select * from t_package p
join usys_system u on u.Value = p.Package_ID
where property = 'TemplatePkg'

Regards

Geert

Thanks Geert! That's what i was looking for.
Title: Re: Difference "Add Element" via Diagram & via Bro
Post by: Graham_Moir on July 04, 2013, 09:14:39 pm
Here's another example where the same function works differently in two places - one of them being the project browser.

http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1368722378