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 ... 514 515 [516] 517 518 ... 566
7726
Now also published on the community site

Geert

7727
Automation Interface, Add-Ins and Tools / The complete C# add-in template
« on: February 16, 2011, 06:36:03 pm »
Because I got sick and tired of having to go back and forth to the EA help file, and translate the events from VB to C# I created an abstract add-in class that already defines all events an add-in could possibly use.
I've also copy-pasted the documentation from the EA help file.

You can find more info about it on my blog, or download the whole Enterprise Architect Add-In Framework from GitHub

I of course hereby invite you all to contribute  :)

Geert

7728
Automation Interface, Add-Ins and Tools / Re: Repository.getElementSet
« on: February 18, 2011, 01:18:40 am »
Looks like a correct usage of getElementSet

Geert

7729
Automation Interface, Add-Ins and Tools / Re: Repository.getElementSet
« on: February 18, 2011, 12:45:56 am »
Repository.GetElementSet already returns a collection.
I don't see why you would request that multiple times.

May I ask what exactly you are trying to achieve?

Geert

7730
Automation Interface, Add-Ins and Tools / Re: Repository.getElementSet
« on: February 17, 2011, 09:14:10 pm »
GetElementSet can be used when you already know the id's of the elements you need, but you don't have the actual EA.Element objects yet.
(you can also pass an sql string to get those id's)

Geert

7731
Something like:
Code: [Select]
EA.Method myOperation;
foreach (EA.Method operation in myElement.Methods)
{
    if (operation.Name == "searchString")
        myOperation = operation;
}

Geert

7732
Automation Interface, Add-Ins and Tools / Re: child elements of operations
« on: February 16, 2011, 01:32:27 pm »
Stao,

I think UML doesn't allow that, so unless that changes...

Geert

7733
Automation Interface, Add-Ins and Tools / Open source EA add-ins and tools
« on: February 15, 2011, 07:02:12 pm »
I've just published most of my C# code on GitHub

There's:
More about this on my blog: http://geertbellekens.wordpress.com/2011/02/15/uml-and-enterprise-architect-tools-open-sourced-at-github/

Geert

7734
Quote
There is no known way to import EA diagrams into Visio at this time.
No? Copy/Paste works  ;D

Geert

7735
We recently moved our data modelling from PowerDesigner to EA.
We too concluded that it was best to reverse engineer the actual database, rather then trying to import the data from PowerDesigner directly.

Geert

7736
Colin,

I've done something like that in the past, and I just added my own GUI to order the elements.
The order was finally not stored in the model, but in the document.
I think I used Word variables to store the link to the model elements. Each section was enclosed in a Word bookmark, and we used the order of the bookmarks in the document to store the actual ordering of sections.
This approach also allowed us to refresh only one section (bookmark) if we wanted to, and add text inbetween the sections that wouldn't get lost when refreshing the document.


Geert

7737
I'm not sure if there is an API function to read/write the paths, but you can find them in your profile at:
\Application Data\Sparx Systems\EA\paths.txt

Geert

7738
Automation Interface, Add-Ins and Tools / Re: build a diagram from code
« on: February 10, 2011, 11:21:09 pm »
Ami,

Some places to look for C# code:
- community site.
- You installation folder: C:\Program Files\Sparx Systems\EA\Code Samples\C#_Sample
- Google ;D

Geert

7739
Mithal,

What happens if you have two (or more) elements with the name "CustomerName" in your package?
Which one will be returned? -> result is unpredictable.

Geert

7740
Mithal,

I don't ever use Collection.GetByName as it doesn't work on all collections, and the results are random when there are multiple elements with the same name.
You better do a foreach and check the elements yourself. (or use an sqlQuery if performance is an issue)


Geert

Pages: 1 ... 514 515 [516] 517 518 ... 566