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 - Aaron B

Pages: 1 ... 54 55 [56] 57 58 ... 60
Unfortunately it is not possible to create a custom dockable window or toolbar for an Add-In at this time, however you can create a custom ActiveX control within a new tab (sharing with the diagram pane).  This is done via the Repository.AddTab() method.  For more information, see:

Edit: Sorry, I just noticed from the end of your last post that you already seem to be aware of this.  Regardless, this is the only way to embed a custom interface within the EA window at this time.

Try calling Repository.AdviseElementChange(ElementID).  This should refresh most common EA windows where the specified element may appear.


The Floating License mechanism used by Enterprise Architect is proprietary and is not compatible with other floating license management systems at this time.  We have had requests to support other third-party license servers (such as FlexLM) but there is no development towards this at the present time.

Automation Interface, Add-Ins and Tools / Re: Element Keywords
« on: December 18, 2007, 02:53:04 pm »
For an element of type "Package", you can find the corresponding package ID in the MiscData(0) field.  I never actually realised that the same guid is used for both the Element and Package, but yes, looking up the package based an the element's GUID also seems to work.  Either way, you do need to call GetPackageByID or GetPackageByGUID to retrieve the EA.Package object.

Keywords should be available from the MiscData(4) field.

Automation Interface, Add-Ins and Tools / Re: Generate EA GUID
« on: December 11, 2007, 02:32:11 pm »
GUID values are automatically generated if you are adding new items via the Automation Interface.  If you are directly inserting into the database, you would need to use a Windows API call like CoCreateGuid to generate a valid GUID for you to insert.


There is a demo under the Resources area of our website showing how to associate TFS Work Items with elements in your EA model.  No idea whether it's exactly what you're after, but might be of some help at least.

See the "Team Foundation Server" demo on the following page:


Support for debugging Windows Native code (such as C, C++) was added in EA 7.0.

Update to the latest version of EA 7.0 from our website and see the following EA user guide page for further advice:


Automation Interface, Add-Ins and Tools / Re: connector.Update() fails
« on: November 15, 2007, 08:59:15 pm »
Can you please specify what type of connector you are creating and what types the source and target elements are?

Would assume you could just use the relevant file system API calls for whatever language you are using to copy the EAP file.  Should probably make sure to close the file before copying however if you are accessing it through automation at the time.

This information should be available from Connector.MiscData(1).  This field is read-only from automation however.  If you intend to write values back to this field, you would need to make a direct SQL update to [t_connector].[PDATA2].


Automation Interface, Add-Ins and Tools / Re: anyone for C++ ?
« on: October 23, 2007, 02:52:29 pm »
Have a look in the Sharepoint Services section of the EA User Group website under the "EA Add-Ins" topic.  There is a C++ Addin Framework project there that someone wrote a while back that may be of help to you.

Automation Interface, Add-Ins and Tools / Re: MDG Integration for Eclipse
« on: October 09, 2007, 07:28:04 pm »
Compile-time generation of sequence diagrams is not possible at this time.  You will need to be able to run your application through the runtime debugger in order to record your sequence diagram.

For information on debugging Java Web Servers, see:

Unfortunately I don't know enough about the subject myself, but hopefully the above link might help point you in the right direction.

Unfortunately there is no GetLatest functionality available in the Automation Interface at this time.

There is a Project.LoadControlledPackage(PackageGUID) function, but this is only designed for a single package and only uses package control (not the same as version control).  This function simply re-imports the local copy of the associated xml file into your model.

To perform the equivelent of a GetLatest call, you will need to manually get the latest versions of the xml files from version control, overwriting the copies in your working directory.  After you have the latest version of the xml files on your system, you should be able to call LoadControlledPackage to import these latest versions into your model.

To connect to a dbms repository from automation, you can either pass the full connection string into Repository.OpenFile, or you can create a shortcut eap file containing the connection string, and simply open the eap file (see below for details).

bSuccess = repository.OpenFile("OraEATest --- DBType=3;Connect=Provider=OraOLEDB.Oracle.1;Password=tiger;Persist Security Info=True;User ID=scott;Data Source=OraEATest")

The easiest way to obtain a copy of the connection string is from the "Open Project" dialog (File | Open Project).  Select the connection from the recent list, then copy the text in the "Project to Open" field.

To Save a shortcut eap file to your repository:
- Open you DBMS repository in EA
- File | Save Project As
- Specify a new filename and Save


Perhaps try calling Repository.AdviseElementChange(elementID) after making your changes.  This informs EA that it should refresh information for this element in all relevant views.

If that doesn't work, perhaps try calling Repository.RefreshModelView(packageID).  Pass in the ID of the Package containing the element you are dealing with.


To extract a Linked Document from your model, try using the Element.GetLinkedDocument() method in the Automation Interface.

Pages: 1 ... 54 55 [56] 57 58 ... 60