Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Geert Bellekens

Pages: 1 ... 479 480 [481] 482 483 ... 552
7201
Andreas,

You just need to use Repository.Execute(SQLUpdateString)

Geert

7202
Automation Interface, Add-Ins and Tools / get element from scenario
« on: April 06, 2012, 09:44:27 pm »
For some reason they "forgot" to add the elementID to the scenario class in the API.
So I had to make a workaround to get the actual element.
For anyone else trying to figure this out:
Code: [Select]
       public UMLUsecase useCase
        {
            get
            {
                string sqlQuery = @"select o.ea_guid as CLASSGUID, o.Object_Type as CLASSTYPE,o.Name from (t_object o
inner join t_objectscenarios os on os.Object_ID = o.Object_ID)
where os.ea_guid = '<Search Term>'";
                List<object> results = this.model.SearchSQL(sqlQuery,this.wrappedScenario.ScenarioGUID);
                if (results.Count > 0)
                {
                    return results[0] as UMLUsecase;
                }
                else
                {
                    return null;
                }

            }

        }

Geert

7203
AFAIK there's no specific API method available for this.
So you'll have to get it yourself from the database then (as with lots of the more "advanced" stuff)
You can use Repository.SQLQuery() to run a query.
In this case, I think what you are looking for can be found in the table t_genopt

Geert

7204
Lars,

Where do you get the idea they "removed" that functionality?
Looks more like it never existed in the first place.

Geert

7205
Automation Interface, Add-Ins and Tools / Re: Get Baselines
« on: April 03, 2012, 05:07:38 pm »
Sethor, Sunshine,

Where do you get the idea that Alex needs to compare baselines with each other?
I don't read anything like that in his question :-?

Geert

7206
Automation Interface, Add-Ins and Tools / Re: Get Baselines
« on: April 03, 2012, 03:23:02 pm »
Maybe you could try searching this forum for "zip".
There might be some code samples..

Geert

7207
Have you tried EA_OnNotifyContextItemModified
If that doesn't fire then I consider that a bug.

Geert

7208
Something like that yet.
There's a whole host of OnPre<someAction> and OnPost<someAction> operations in the API that you can use to react to changes in the model.
See here: http://www.sparxsystems.com/enterprise_architect_user_guide/9.3/automation/broadcastevents.html

Geert

7209
Sure using the EA API it should be possible to go over the code after reverse engineering the code, and add the required relations.
If you are looking for a place to start:
Tutorial: Create your first C# Enterprise Architect addin in 10 minutes
If you are looking for examples:
https://github.com/GeertBellekens

Geert

7211
EA is only 32 bit, so you won't find a 64 bit dll.
I guess the caller will need to adapt.

Geert

7212
Thanks Luis,

That is a great workaround!
(I sort of feel bad that I didn't think of it :-[)

Geert

7213
Does anyone have ready made code to copy a sequence diagram?
From what I see now I'll have to:
  • copy owned elements (notes and fragments)
  • copy diagramObjects
  • copy messages
  • copy diagramLinks

Geert

7214
Rudi,

I wouldn't start creating XMI manually.
The first option is to to use the ODBC reverse engineering.
If that doesn't work out I would use some other kind of import mechanism  like the simple vba excel importer

Regards

Geert

PS. Call or email me privately if you want to discuss more.

7215
I'm afraid that that isn't possible at the moment.
I don't see any workarounds.

You can always send in a change request.

Geert

Pages: 1 ... 479 480 [481] 482 483 ... 552