Currently I am working on importing our application definitions into EA. Some of the application definition is just huge and I am tring to improve the performance of it.
The questions that I had are:
[highlight]1. Is there any way to layout the diagram without displaying the diagram.[/highlight] Currently, everytime after I layout the diagram, my code will close the diagram. But, although this save the amount of resouces that it is using, but it is still slow, therefore ideally I don't want it to show at all when I am doing the diagram layout
[highlight]2. Is there any way to disable the auto layout of the Project Browser in the code when adding new diagram or Element to the Package? [/highlight]
3. Currently after the process imports a huge number of the objects into EA, [highlight]I am getting an Error, saying something like "Unable to get Resource", [/highlight]because EA is using up all the available memories. From the memory usage of the EA, I can see that memory jump up about 100M from before the import process. Is there any thing, I shouldn't do or should to avoid this? I suppose if the point 1 and 2 can be solved, it should help to this.
[highlight]4. Another question related to the Automate Model API[/highlight]. In the "EA User Guide", it said the thing like PackageID, ElementID are Long type. But in the COM API, it is int. Which one is correct?
Thanks for any advice.
Cheers