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 ... 476 477 [478] 479 480 ... 512
7156
Tom,

I think that approach should be able to work.
We have a slightly different approach.
We have structured the notes field of the EA elements with xml tags.
One of those tags is the workitem in TFS.
Every time we change something in EA we keep a change log in the notes of what was changed and for wich workitem.
Its far from perfect, but it allows us to keep traceability between requests/issues and the changes in the EA model.

Geert

7157
Search the "Automation Interface, Add-Ins and Tools" forum (using top left button) for "link to element feature"

Geert

7158
Automation Interface, Add-Ins and Tools / Re: Clean HTML report template
« on: October 06, 2010, 07:42:05 pm »
I think Simon means: write a HTML generator using the API of EA to query the model.

Geert

7159
Automation Interface, Add-Ins and Tools / Re: Ea java api and maven
« on: October 04, 2010, 04:32:19 pm »
Quote
But it aint working.
Not quite the most descriptive problem report I've seen  ;)
You might want to include some more details as to what exactly is the problem.

Geert

7160
Automation Interface, Add-Ins and Tools / Re: getcontextObject in C#
« on: October 01, 2010, 09:18:43 pm »
you might still be using an old version of the interop.ea.dll

In my version the Repository.GetContextObject is there.
I just checked and I'm using version 2.10.238.1 dated Wednesday 18 August 2010, 14:35:22

(I've installed EA 8.0.862)

Geert

7161
Automation Interface, Add-Ins and Tools / Re: BPMN 2.0
« on: September 30, 2010, 09:16:54 pm »
Its very likely the BPMN 2.0 MDG won't be available before the specification itself has reached GA status. (I saw that it is currently in beta 2 status)

Geert

7162
Michael,

Is this related to the "error creating window handle" issue?
I get this error regularly when I have Visual Studio, EA, SQL Server Managament studio and things like that open.
It seems that one or more of those applications keeps allocating window handles without releasing them. After a while all my window handles are gone, and I can't even get a context menu in Windows.
Closing one of the "big" applications usually solves the issue for a while, but every once in a while I need a complete reboot to get anything done.
It looks like it is related to the docked windows framework that is used by EA, VS, SQL Server Management Studio.

Geert

7163
Automation Interface, Add-Ins and Tools / Re: True Nesting Connector
« on: September 29, 2010, 11:30:57 pm »
Marcelo,

Scripts and addins use the exact same API.

Geert

7164
Automation Interface, Add-Ins and Tools / Re: True Nesting Connector
« on: September 29, 2010, 03:15:33 pm »
Element.ParentID if the parent is an Element, Element.PackageID if the parent is a Package.

Geert

7165
This seems like a bug to me.
If you add a diagramObject to the Diagrams DiagramObjects collection it should at least already fill in the DiagramID on the new DiagramObject.
It already does so for other collections...

Geert

7166
Hamid,

Could you please not post your question twice?

Thanks

Geert

7167
Automation Interface, Add-Ins and Tools / Re: OpenFile returns false
« on: August 25, 2010, 07:42:47 pm »
Try Repository.GetLastError ()

Geert

7168
Automation Interface, Add-Ins and Tools / Re: Can we sort a collection?
« on: September 27, 2010, 03:39:04 pm »
pH,

You can, but not by trying to sort the actual EA.Collection. (if you have suicidal tendencies, then by all means go ahead and try to sort the EA.Collection :-X)
Each of those elements has its own sorting property. Attributes and Operations can be sorted using their Pos attribute.
For Elements within a package use TreePos, ...

Geert

7169
Having another look at your code revealed the error.
You are adding the relationship to the package connectors collection, whereas you should add it to the source or targets connectors.
Something like this should work:

Code: [Select]

dim source as ea.element
dim target as ea.element
dim connector as ea.connector

set source = testpackage.elements.AddNew ("sender","Activity")
source.update()
set target= testpackage.elements.AddNew ("rcvr","Activity")
target.update()
set v_connector= source.Connectors.AddNew ("Test Connection","Association")

v_connector.SupplierID = target.ElementID

v_connector.update()
// source.connectors.refresh() // refresh only necesarry if you will be doing something with the connectors collection later on in the code.


And remember to reload the diagrams if they are already open.

Geert

7170
The diagramID shouldn't matter at all. (except maybe for "sequence" links)
Tim, can you verify that the connectors actually exist in the links tab of the source or target properties?
If they are there they should show up on any diagram that contains both source and target.
However, they will only show up when you have reloaded those diagrams.
The Repository object contains some operations to reload the diagrams, so that might help.

Geert

Pages: 1 ... 476 477 [478] 479 480 ... 512