Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Michael Proske on March 12, 2012, 10:59:01 pm
-
I have created a tagged value to use the AddinBroadcast Function
Type=AddinBroadcast;
Values=SiemensEnvironment.EA_OnElementTagEdit;
Then i created an event function to listen to the event.
public void EA_OnElementTagEdit(EA.Repository Repository, long ObjectId, String TagName, ref String TagValue, ref String TagNotes)
{
TagNotes = "Hallo";
}
When i klick on the ellipse nothing happens. Any idea what is wrong.
-
Did you define the tag as Type=AddinBroadcast in the definition?
q.
[edit:] I tried to return notes/value. None did change. So: as usual. It's broken. Report a bug.
-
Yes i defined it correctly. The proposed ellipse button also appeared. But nothing happend. I will submit a bug (maybe i reach 100 bug reports befor summer ...)
Thanks for your support
-
I'm only at 50+ but mainly because I gave up sending reports for all findings I had. For a lot of them I just found "Geert-arounds".
q.
-
I'm afraid there's no way to "geert" around this one ;D
EA has to make the call, and not amount of database editing or other dirty tricks will make it do so.
What I think is that you only have to give it the name of your addin, not the complete path to the operation.
From the help:
Type=AddinBroadcast;
Values=YourAddinName;
So if your add-in is known by EA by the name of "SiemensEnvironment", then that looks like what needs to be used.
If I find the time I'll try to experiment with it one of these days.
In this case an example would really help :-/
Geert
-
I'm afraid there's no way to "geert" around this one ;D
[size=18]...[/size]Geert
Guys! This is "geerting" better and better! ;D ;D
Paolo
-
EA has to make the call, and not amount of database editing or other dirty tricks will make it do so.
Sure. And EA does. But it does not take back the parameter values. So that's something to report.
q.
-
The answer from Sparx is
Hello Michael,
Thank you for your enquiry.
The "AddinBroadcast" tagged value type should only specify the name of
the add-in to be called - not the method.
E.g.
Type=AddinBroadcast;
Values=CS_AddinFramework;
Not:
Type=AddinBroadcast;
Values=CS_AddinFramework.EA_OnElementTagEdit;
Try removing the ".EA_OnElementTagEdit" part from your tagged value
definition.
Geert you are right with your tip. I did it and it works. qweryt what do you mean by it takes not back the parameter values ? I just put in
public void EA_OnElementTagEdit(EA.Repository Repository, long ObjectId, String TagName, ref String TagValue, ref String TagNotes)
{
TagNotes = "Notes";
TagValue = "Value";
}
and it works correctly.
Is "geerting" a kind oy joke between you and Paolo ;)
-
Hi Michael,
Glad to see you got it working.
Geert
PS. Yes the whole "geerting" thing is a joke :D
-
[size=18]...[/size]
Is "geerting" a kind oy joke between you and Paolo ;)
Hi Michael,
If you look carefully, qwerty started it!
But it DID pique my fancy...
Good to see you got it resolved. looks like some cool functionality.
Paolo
-
I think it could be interesting to play around with it i will next try to raise a dialog to edit my tagged value. I give you input about the results.