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 ... 477 478 [479] 480 481 ... 536
7171
Max,

I'm not sure, but I believe indeed that the integrity checker does change guid's from time to time. (in case of duplicates for example).
What I would do in your case is try to identify the requirements by their fully qualified name and eliminate the duplicates that way.

Geert

7172
Sébastian,

I suggest you start with a basic hello-world example and and start adding stuff from that point on.
See MyAddin for a ready made example.

Geert

7173
You have to use sql queries to efficiently get what you need from the model.
See the operation internal List<ConnectorWrapper> getRelationsByQuery(string SQLQuery) in  Model.cs for an example.

Geert

7174
I'm guessing, but probably the usecase on the target end will be the one that is being included/extended.

Geert

7175
Sam,

That is indeed a correct way to work, but the downside is that it is pretty slow.
The API tends to get really slow when iterating different collections. A call to Repository.GetElementSet() with an SQL query will be a magnitude faster.

Saddiq,

I'm still not getting your requirement. You need info on all elements in a diagram that aren't on a diagram? That just doesn't make sense. :-?
Anyway, all elements in the model are stored in t_object. All elements shown on diagrams will have a record in t_diagramObjects.
So all records in t_object that don't have a (one or more) record in the t_diagramObjects are the elements that are not shown on any diagram.

Geert

7176
You might want to explain a bit further what you actually need.

Geert

PS. You can open your eap file with ms-access to figure out the database layout.

7178
No,

You use an sql query to get a list of all guid's of all diagrams ("select diagramguid from t_diagram"). You loop over each of those guid's and use Repository.GetDiagramFromGUID to get the actual diagram objects.

Geert

7179
The best way to go about is to use an sql query with Repository.SQLQuery() to get all id's of all diagrams, and then use Repository.GetDiagramByGuid() to get the actual diagram.

Geert

PS. Are you sure you need ALL diagrams? That might be quite a performance hit.

7180
Automation Interface, Add-Ins and Tools / Re: Generating C# code
« on: July 20, 2011, 05:06:28 pm »
Austinn,

You'll have to implement the interfaces features in EA first before you they will show up in the generated code.
Select Employee and press Ctrl-Shift-O to implement the interface features.

Geert

7181
Murat,

You can show an image of a diagram in a your own window, but I don't think you can re-use the actual EA graphical elements.

Geert

7182
Quote
Geert, this is a common problem and EA has had handling for it since before version 4.

os14, Look at Settings | Preprocessor macros.

Just add "far" into that list.

Oops I didn't know about that, sorry for the misleading answers :-[

Geert

7183
I'm afraid there's no way at all to interfere in the inner workings of the reverse engineering process.

Geert

7184
you can't.

Geert

7185
have you tried package.VersionControlGetStatus ()?

Geert

Pages: 1 ... 477 478 [479] 480 481 ... 536