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 ... 391 392 [393] 394 395 ... 419
You'll need to modify the DiagramLink.Style, the value you set is overridden on each diagram.

I had Mode=1 become Mode=3 and TREE=V;.

Look at some examples to see exactly what you need.

Automation Interface, Add-Ins and Tools / Re: Create connector-note
« on: July 07, 2008, 08:15:46 am »
Please note that I first fooled around with this aspect of the API since EA 4.1, and much has changed. At that time I needed to do some (really) fancy footwork because EA used to open EAP files for exclusive access (it no longer does). I wrote a second thread to open and close the database as well as insert the necessary text fields (as above).

Once EA started opening EAP files for shared access - around version 5.0 - I cleaned up my code a bit and left it at that.
Since at least 4.0 (and probably before then) the Desktop edition has opened eap files for exclusive access while the professional and corporate editions have allowed for shared models.  This hasn't changed to my knowledge, and is documented as part of the limitation for the desktop edition.  (

Automation Interface, Add-Ins and Tools / Re: Code Templates
« on: July 02, 2008, 08:16:49 am »
Ports are currently not accessible directly from code templates.  If you want to generate code from them, you'll have to do one of two things.

1. Use a transform to generate a model that EA can generate from.
2. Call an add-in from your code templates. There are examples on the forum if your search for EXEC_ADD_IN.

I'm curious, what are you wanting to generate.  Different people seem to expect different things, and I'm currently looking into some related areas.

Automation Interface, Add-Ins and Tools / Re: Getting the linked item
« on: June 27, 2008, 02:44:37 pm »
No. I just got the information you needed out of the help file.

Automation Interface, Add-Ins and Tools / Re: Getting the linked item
« on: June 27, 2008, 08:53:30 am »
You want Element.Connectors which is a collection of EA.Connector.

Okay, let me say what I know about this issue without having actually looked at it.

Despite being displayed to a user, the default value of tagged values does not appear to automatically set when a tagged value is created.  (You can see this behavior showing the tagged values on a diagram too.)  It acts more as a default value to show when no existing value is set.

That makes this a specific case of having a different display value to the background value.  Another example of this would be the RefGUID tagged value type.  Displayed to the user as the element name (and stereotype) but stored as a guid.  This suggests that the API problem is actually that we need an extra (readonly) property for the display value.  This extra property would then need to be added to the various tagged value classes in the API.

This is all under my above disclaimer that I haven't actually looked at it.

I haven't looked into this, but at least one other user is having the same problem.


Element.Tests is a collection of EA.Test

[split] [link=][splithere][/link][splithere_end]

Then have a look at Repository.GetTreeSelectedItem.  However I think it only handles one item.

From that you can get an object and cast it appropriately depending on the return value.

As has been said twice here, a diagram ID is incompatible with an element ID.  Your code may appear to do something right just because there happens to be an object with the same ID as the diagram.  But really the behavior will be undefined.

From what I read, Dermot is probably correct that you want to iterate over the elements on a diagram.

Are you wanting Project.DoBaselineCompare()?

User-defined Code Templates can be imported and exported as Reference Data (see Import and Export Reference Data in the Enterprise Architect User Guide). The templates defined for each language appear in a list of tables with the language name suffixed with _Code_Templates.

You could also embed them in an MDG technology.  (

[split] [link=][splithere][/link][splithere_end]

Thanks David,

I didn't think I'd made a mistake, but did appreciate that are more lengthy and formal description could remove possible ambiguities from what I said.

Pages: 1 ... 391 392 [393] 394 395 ... 419