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 - Simon M

Pages: 1 ... 389 390 [391] 392 393 ... 419
Diamonds are available as Decision elements and MergeNode elements.

You can also define a shape script like

Code: [Select]
shape main
  startpath(); // Start to trace out a path
  endpath(); // End tracing out a path
  // Fill the traced path with the fill color

I can't give you an example of creating an element, and adding it to the diagram, but a quick look at the documentation or the code samples in the EA install directory should be enough.

It sounds like a problem that we had with the Java API early in 7.1.  Try again after upgrading to the latest build.

Automation Interface, Add-Ins and Tools / Re: Connectionstring
« on: September 15, 2008, 04:10:42 pm »
No, the connection string encryption is to prevent users from knowing the actual encryption string to the database (as required by some companies).  If an add-in could get the unencrypted string then the whole thing would be unsuitable for the customers who wanted it.

If your addin requires the connection string, it will have to be documented as a restriction to your add-in that it doesn't work with an encrypted connection string.

Automation Interface, Add-Ins and Tools / Re: Connectionstring
« on: September 12, 2008, 08:19:11 am »
I don't think you can't get it from the EA API.  That's why I said you'd have to look at the file.

Automation Interface, Add-Ins and Tools / Re: Connectionstring
« on: September 11, 2008, 11:49:39 am »
An alternative interpretation of the original question is that he's opening his DBMS database through an eap shortcut file, and the connectionstring parameter reports that.

In order to get the actual connection string you would need to look at the file.  Also note that if a user has connected using an encrypted connection string you will get the connection string in an encrypted form.

Have you tried the save as shortcut functionality?

You can create a shortcut like this for any model.  And if you set EA up with the views you want opened when you open the shortcut it will fill the dialog appropriately.

Sorry, I have no idea.

It's an entirely different situation from the existing work on the Java API.  (EA calling querying and calling Java instead of Java calling EA)  Although I have a good idea what needs to be done, it's not something I've had a chance to look at yet.

Actually you can't write add-ins.  See the readme.txt in the Java API directory.

Limitations and known issues:

1. You cannot currently use thie API to write plug-ins for EA. It is only suitable for accessing the automation server API. Plug-in capability is currently being planned.

2. Due to the nature of Java interacting with native methods and COM, garbage collection is not be optimal. Native COM classes and memory allocated for these is not seen by the Java garbage collector, so you should explicitly invoke a garbage collection from time to time when working with many objects using the Java API. This will ensure native memory is freed in a timely fashion.

When you call Update(), the changes are written to the database.

The running instance of EA goes to the database for different things on a regular basis.

There is no connection to the running instance of EA.  Only shared data.

The Java API doesn't provide any means to access an already running version of EA, so you've come as close as you're going to get from Java.

If you are connected using an encrypted connection string EA will give you the encrypted connection string.  Other than that, I don't think there is.

The notes fields in EA are stored in a HTML like syntax.  So, if you wanted to get the RTF for Element.Notes, you would call Repository.GetFormatFromField("RTF", Element.Notes)

I can confirm that EA doesn't load add-ins when opened from automation.  You'd have to submit a feature request for it.

David, that's an impressively out of date opinion.  That function was available in EA 3.51.619 (I can't easily check back further than that).  ;)  Or maybe it's just one of those features that can be a little hard to find.

Pages: 1 ... 389 390 [391] 392 393 ... 419