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 ... 517 518 [519] 520 521 ... 560
7771
Quote
I decreased the computation time from 7 minutes to 40 seconds!

That quite an improvement.
Now put the package.updates back an install it like that. After the users start complaining you can be the hero by improving the performance by this much  ;D

Geert

7772
Quote
Thx Mister Bellekens
Whoa, "Mister Bellekens" is my dad, just "Geert" is enough  ;)
(I know, must be difficult for someone who addresses his colleagues with Herr/Frau <lastname>)

In fact, when I was working on the performance issues with my addins the VS Performance Analysis helped a lot. It also showed that most of the processing time was spent doing countless database calls.
So the trick to is avoid database calls as much as possible.

On of the really weird things with the API is that is even does one or more database calls while iterating an EA.Collection. So the trick is to only iterate a certain collection one, and as soon as you have an EA.Element, EA.Attribute,...  store it in something sensible, like a "real" Collection (List<> or something like that).

Geert

7773
Hi,

I think you can go without the refresh operation for each element. You can do a Repository.RefreshModelView() after you finished importing everything.

Some other options you can try to increase performance are:
- Repository.BatchAppend
- Repository.EnableCache
- Repository.EnableUIUpdates

Without further details of your code I can't really do any more recommendations.
What you could do is look at the excel importer I published on the community site. I had some performance issues there too, and I was able to increase the speed quite a lot. IIRC it imports 10.000 lines in a matter of minutes, but I would have to test it to be sure.

Geert

7774
Automation Interface, Add-Ins and Tools / Re: Lock diagram
« on: November 24, 2010, 06:06:58 pm »
I you want complete readonly access for a number of users that is easier.
You can either take away all their rights in EA, give them only read-only rights to the database, or just only install the free EA-Lite on their machines.

Geert

7775
Automation Interface, Add-Ins and Tools / Re: Lock diagram
« on: November 24, 2010, 05:46:58 pm »
Mithal,

I think the only way to be sure it to use Version Control.

Geert

7776
Automation Interface, Add-Ins and Tools / Re: Macro for superclass
« on: November 23, 2010, 11:47:16 pm »
What do you mean by "macro"?
In which context do you want to use it?

Geert

7777
Simon, since this is the "Automation Interface, Add-Ins and Tools" forum I guess VaGen was looking for a way to do this using the API.

I think Ondrej is right, you'll need to create a new element and copy everything you need to the new element.
The only other option I can think of is to
- create a new package,
- move the element into that new package,
- export the package to XMI
- Import the package from XMI with option "strip GUIDs"
- move the source element back from where it came
- move the target element to a suitable location
- delete the temporary packages.

But I think I would go for the first option.

Geert

7778
I always write a separate test application that I use to test the functionality of my addin.
I then disable the addin in EA untill my tests are OK, and only after that I test it from within EA.

Geert

7779
Automation Interface, Add-Ins and Tools / Re: Add-in in Java?
« on: November 18, 2010, 04:56:11 pm »
Oh, I didn't know that  :-[

Geert

7780
Automation Interface, Add-Ins and Tools / Re: Add-in in Java?
« on: November 17, 2010, 05:10:51 pm »
Alan,

Yes you can.
See C:\Program Files\Sparx Systems\EA\Code Samples\Java_Sample
for an example.

Geert

7781
Automation Interface, Add-Ins and Tools / Re: EA_GetMenuState
« on: November 18, 2010, 09:15:01 pm »
Gilles,

The idea is that you can enable or disable menu items depending on the selected object or the location (main menu or context menu).
I've used that feature a lot in my addins, and I've never had any issues with it, it always worked as expected.

Geert

7782
Automation Interface, Add-Ins and Tools / Re: EA_GetMenuState
« on: November 17, 2010, 08:05:57 pm »
Gilles, I'm happy to help, but If I don't see your problem, the I can't :-?
Maybe you can try to explain the problem a bit more...

Geert

7783
Automation Interface, Add-Ins and Tools / Re: EA_GetMenuState
« on: November 17, 2010, 05:12:33 pm »
Gilles,

I fail to see your problem  :-/

Geert

7784
That's because you have to start of project of type "Windows Forms Application"

Geert

7785
Sven, if you have created a windows forms application you should be able to just start it by clicking the green |> icon.

Geert

Pages: 1 ... 517 518 [519] 520 521 ... 560