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
7771
Quote
That's one of the ones I was referring to. As to the others, I am hoping that a bit of hands-on research will help readers get more used to the documentation. It takes a bit of practice before you develop a feel for where methods might (or should) be. Once you have the knack you can usually find these things (if they are there at all). But there is no substitute for doing it yourself a few times...

Sorry David,

I was already editing my response when you replied. I agree with your mild RTFM attitude though ;)

Geert

7772
I think David was referring to the method Repository.ReloadDiagram

From EA help:
Quote
ReloadDiagram (long DiagramID)
  
 Reloads a specified diagram. This would commonly be used to refresh a visible diagram after code import/export or other batch process where the diagram requires complete refreshing.

Parameters:

DiagramID: Long - the ID of the diagram to be reloaded.


Geert

7773
Automation Interface, Add-Ins and Tools / Re: Create EA UI Screen
« on: August 17, 2009, 11:11:25 pm »
try DiagramObject.Sequence
According to the documentation that should do the trick.

Geert

7774
Automation Interface, Add-Ins and Tools / Re: Location baseline
« on: August 17, 2009, 07:29:05 pm »
According to this reply: http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1244032203/1#1
The baseline is stored in the database, and not in an xml file.

Geert

7775
Automation Interface, Add-Ins and Tools / Re: detail info about element
« on: August 10, 2009, 09:36:39 pm »
Not as far as I know.
I'm afraid you'll have to do the legwork yourself  ;)

Geert

7776
Automation Interface, Add-Ins and Tools / Re: find a class for an object
« on: August 10, 2009, 07:44:10 pm »
Since you are posting this in the Automation Interface ... forum I guess you are searching for a programatic solution using the API?
In that case you can get the ClassifierID from an element.
Use that ID in the operation Repository.GetElementByID and you should get the "parent" element you are looking for.

Geert

7777
With cached I mean store every element that was retrieved from EA in a dictionary. Everytime I need an specific element I first look in the cache dictionary. Only if its not there I call the Repository.GetElementByID.

With the network optimizer I guess you mean the WAN optimizer? No I haven't tried that since I work on a LAN. (and I don't control the SQL server machine) Do you think that could make a difference, even on a Gigabit LAN?
I did however check with the database guys. They took a profile and unfortunately there is not much they can do. EA fires an insane amount of queries on the server when I run my validator (about avg 131 per second)
I think it's the overhead of sending all those queries over the network that is killing the performance.

Geert

7778
I managed to increase the performance considerably, but not thanks EA or SQL server tweaking.
After some profiling I found that the Repository.FindElementByID was taking a lot of time.
I cached all element I already found and runtimes went to:
  • local EAP file: 2 minutes
  • SQL server (over the network): 10 minutes
So the overall time is better, but there is still a big difference between EAP and SQL server.
I'll try our database specialists now for some more help.

Geert

7779
Hi,

I'm writing a little validation tool that visits (a part of) the model and validates some of our modelling rules against those visited items.
When testing on a local EAP file I got a run time of 7.5 minutes for 10.000 validated items.
When testing on a model on the SQL server I got 46 minutes for the same items.
Does anyone have an idea how I could improve the performance on SQL server repository?

Thanks

Geert

7780
You are looking for the "Assembly Registration Tool" regasm.exe
Look here: http://msdn.microsoft.com/en-us/library/tzat5yw6(VS.71).aspx for details.

Geert

7781
Hold down the control button when dragging the element onto the diagram.
That should make the diagog appear giving you the choice to create a simple link, an instance, or a new child.


Geert
Edit:
Sorry I didn't read your question properly  ::)
I see this is answerred properly now.

7782
Did anyone actually make the feature request to expose the "OpenPropertiesWindow" to the API?
I was just looking for that exact function, but the only thing I found that is somewhat related an "OpenDiagram" and a "ShowInProjectView"

Geert

7783
Coder,

I doubt that this is a licencing issue. I think the EA.Interop.dll is going to be the same for all versions.
What I did notice when we did the upgrade to 7.5 here was that some workstations didn't get the new EA.Interop.dll, so it might be an installation issue.
I would check the version of the files responsible for the API.

Regards

Geert

7784
I think you should be looking at the IDualDiagram interface.

Geert

7785
So how exactly did you solve it?
Have you introduced a sleep() for a few seconds before continuing or...?

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