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 - flofsid

Pages: [1]
1
Thanks Geert  :)

I found it in StyleEx

2
Hi Guys,

I want to create a Diagram with my C# Addin and set the Diagram Elements Property "Group Tags by Stereotype".
How can I do that?

Thanks for your help  :)

Best regards
Flo

3
I measured a few times again and you're right, it's getting slower and slower over time

half of all elements is generated after 2 minutes but it takes 8 minutes in total

this is not the case with the eap Projects

4
I removed the Refresh() calls but that has no effect on the speed  :(

5
Thanks for the test Geert :)

Does your ExcelImporter also create new EA.Elements and EA.Packages or did you just read out an Excel list?

Reading my xml files is also much faster with the 64bit version :)

but creating new EA.Elements and new EA.Packages is slower

my code

Code: [Select]
Repository.EnableUIUpdates = false;

//Create Package
EA.Package newPackage = (EA.Package)collection.AddNew(name, "");
newPackage.Update();
newPackage.Element.Stereotype = Library.EA.Types.InformationType;
newPackage.Update();

foreach (EA.TaggedValue tag in newPackage.Element.TaggedValues)
{
  foreach (EaProperty property in item.Properties)
  {
     if (tag.Name == property.Name)
     {
       tag.Value = property.Value;
       tag.Update();
     }
   }
}

newPackage.Element.TaggedValues.Refresh();


//Create Element
EA.Element newElement = (EA.Element)collection.AddNew(item.Name, item.EaType);
collection.Refresh();
newElement.Update();

foreach (EA.TaggedValue tag in newElement.TaggedValues)
{
  foreach (EaProperty property in item.Properties)
  {
     if (tag.Name == property.Name)
     {
       tag.Value = property.Value;
       tag.Update();
     }
   }
}

newElement.TaggedValues.Refresh();

6
For me that doesn't make much sense either and why do I only have 5% CPU usage with the .qea models?  ;D

Everything that has nothing to do with the EA Repository is also much faster, but creating new EA objects takes twice as long.

My Addin has to import a lot of elements, it can be up to 10,000 pieces.

Have you ever tried something similar with the new version?

Thank you for the answers Geert :)

7
I've already tested a few things with the same xml File.

First the import into EA15 (*.eapx):
- Duration: 00:03:45
- CPU usage: 16%

Second the import into EA16 32bit (*.eapx):
- Duration: 00:03:41
- CPU usage: 16%

Third the import into EA16 64bit (*.qea):
- Duration: 00:07:53
- CPU usage: 5%

And last the import into EA16 32bit (*.qea):
- Duration: 00:08:01
- CPU usage: 5%

So the problem must be with the new (*.qea) repository

8
My addin creates many elements and packages from xml files.

Reading the xml files is even faster with the 64bit version,
but creating the objects in the project browser takes twice as long as with the 32bit version.

So I think creating new objects is the problem.

9
Hi guys  :),

I tested my add-ins with the 64-bit version and noticed that the performance is worse compared to the 32-bit version.
Everything works, but it takes longer.

Can someone tell me what I can do about it? 
Thanks :)

Best regards
flofsid

Pages: [1]