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 - Rich Anderson

Pages: 1 [2] 3 4 5
General Board / System Resource Exceeded on Large Deletes
« on: May 28, 2018, 12:37:07 pm »
Hi There, I'm having problems deleting packages with lots of elements and attributes, frequently getting the dreaded "System Resource Exceeded" message.  The only workaround I have found was to restart EA and delete the package in smaller parts. (I could write a script, but I'd rather not).  I've scoured the messages to see if anyone has had this problem and did not find anything.  I've also filed a but with Sparx because I've seen this recommended also, but I thought I would ask.   I do this a lot because I'm writing code that generates lots of elements, so in my testing I frequently need to delete packages that are quite large.   I'm using the standard EAP file on my desktop.

Hi All,  First let me say THANKS for all the great help and advice.  I think I need a bit of time to go through all of this and make a call.  The reason I prefer is that I have at TON of EA automation "helpers" written VB.NET as separate executables to do all kinds of stuff and have gotten to know the EA API quite well. That includes this crazy thing ( that I wrote about 2 years ago that I use all the time in my work.  Much of what I do involves interchanging data with MS Excel (both reading from Excel and writing to it).  In that world, it helps a lot to use a language similar to Excel VBA, so VB.Net works better for me for that reason, too.  Plus, I'm just old, and I don't want to change my ways!   8)

I can do C# if I need to and maybe I just need to eat my spinach in this case and get on with it (or maybe I don't).    I'll let you all know how I get on, but thanks again for all the help!

Hi There, I'm pretty new to building add-ins and I was able to build a simple Hello world add-in and successfully register it with c# using the examples on the website.  I also tried to make a clone of it in VB.NET using VS2015 and I wasn't able to register it, getting the "missing  0x800401f3" error.   I've looked through all the posts I can find on this, and it appears to be a  C# kind of thing (although the SDK has lots of VB in it)

All things, being equal, I would rather use VB for this situation, but I'm wondering whether I'm just setting myself up for problems.  I can do C#, if I have to. 


Bugs and Issues / Re: EA 14.0: Find in Browser odd behaviour
« on: May 21, 2018, 08:56:40 am »
It seems bizarre to me that "Find in All Diagrams" is not right next to "Locate in Current Diagram" the way it used to be.  Put it back!

Yes, if you are up to speed on creating an MDG (I'm not), it looks pretty straightforward given that the language is pretty well described.   Take care.

Hi there,

I'm wondering whether anyone knows of an MDG that has been developed for the Essence Language.    (

It has similar purpose but distinct differences from SPEM 2.0 ( which does have an MDG.    I have a client that may be interested in this, so just checking to see if anyone here can point me in a good direction.

I would recommend that you try creating a simple VB.Net program using Visual Studio Community Edition that reads the spreadsheet directly through the Excel API and then updates the EA model directly using the EA API.  In this way, you can bypass the whole problem of Excel importing.  You can just write a loop that goes down the rows and/or columns of the spreadsheet and plugs the elements and connectors into EA.  I do this all the time and have done some quite complex importing that way.

Thanks for letting me know about that.  I had checked it out before, but what I need is something that I have more control over.   So it looks like there is no way to access the images as a BLOB using the API, right?  If I want that, then it appears that I will have to use a table query using the Jet API.   Right?

Hi There,    I would like to be able to generate a PowerPoint presentation from EA using  However, I don't see any easy way to get a reference to the diagram image as an object through the API.  Anyone know how to do this or do I need to access the image through SQL?

Actually "Archimate2" with the lower case M does work.  That's what got me so confused.  I never tried "ArchiMate2".  My guess is that it won't work because the case sensitivity, but stranger things have happened!

Well, KP, that was it!  I re-ran with this change and it worked as before.  However, it's a bit odd that "Archimate2:Business" works, but "Archimate3:Business" does not.  It seems that the Archimate 2 MDG is either not case sensitive or uses lower case but the Archimate 3 MDG behaves differently!   

Querty, you are correct.  I re-ran the code to generate using Archimate 2 and it worked as expected.  It must be something wrong with the Archimate 3 MDG, I think.   I will log it as a bug.   


Hi There, 

I have a case where I'm programatically generating several diagrams and I'm not able to properly set the diagram type on creation with this code:

Code: [Select]
Dim archimatediagram As EA.Diagram
archimatediagram = parentelement.Diagrams.AddNew(parentelement.Name, "Archimate3::Business")

I've read in other posts that it's not possible to change the diagram type programatically using the Metatype property because that was deemed to be unsafe, and there appear to be ways to do this in SQL (which I prefer to avoid). 

It seems however, reasonable that I should be able to set the type of diagram based on the MDG at creation and the AddNew method takes type as a parameter.  However, this code above always yields a basic class diagram. 

What, if anything, am I missing here?

General Board / Re: Learning the document generator
« on: March 27, 2018, 12:46:26 pm »
Thanks!  I will check into these!

General Board / Learning the document generator
« on: March 24, 2018, 11:41:30 am »
I'm trying to learn how the document generator works, mostly by reading the help system and just trying things.  I'm finding it to be a bit of "black art" and I find myself sometimes going in circles.  For example, I cant' seem to figure out how to generate the element details on a diagram directly after the diagram.  The documentation sort of explains it, but I can't get it to work.  I'm making some progress, but it's painfully slow.  Does anyone know a better way to learn this thing?   Some kind of tutorial with exercises would be good.

Pages: 1 [2] 3 4 5