Add-in: automatically add direction mark to Associations

With this Add-in, when you create a new Association connector and set its name, a reading direction mark (black triangle) is automatically added. (the direction is connector's source to target.)

To enable this Add-in, follow the steps:

 

1. Unzip the attached file.

2. Run EAAddinSetup.bat file. If you run on Windows Vista or Windows 7, please run the bat file as Administrator (right-click the file and run as Administrator).

3. Run Enterprise Architect.

4. Create an Assocation.

5. Double-click the Assocation and set its name.

6. The add-in works on the background automatically, and the reading direction mark will be added automatically.

 

This article contains content available for registered members only. You need to be logged in to view/download this content.

About the Author

Takeshi Kouno

Takeshi Kouno

Sparx Systems Japan (Chief Executive Officer)
Sparx Systems Japan develops RaQuest and ARCSeeker which are Add-in products of Enterprise Architect. For more detail, visit https://www.sparxsystems.jp/en/ .

Comments

  • Hello, What kind of the event did you used to do this functionality ? Is it possible to publish any source code ? Best Regards, Adam

    • I am sorry not to approve your commments for a long time. I did not realize the comments. (Even if I set the notification emails, I never receive them. I will re-check the setting again.) And I am sorry but now I can not publish the source because the source is very dirty and no comments. I will arrange the source for publish in the future. I use two events, EA_OnPostNewConnector and EA_OnNotifyContextItemModified. EA_OnPostNewConnector: To show the direction mark, I need the DiagramLink data in t_diagramlinks. So I call Diagram.DiagramLinks.AddNew here. (may not necessary) EA_OnNotifyContextItemModified: When this event is called for a Connector, the connector may have a name. If the connector has name, I change the DiagramLink.Geometry property to show the direction mark. Hope this information helps you.

      • Sorry, not easy to read my comment because all blanks and carriage returns are removed...

  • Hi, Is it possible to make available the source code of this Add Direction Add in ? Thanks, Best regards, Adam

  • Hi I am new to EA. Can you please tell me the use of this Addin. Thanks, Lakshmikanth

    • I am sorry not to approve your comment. I didn't realize it. I will update the installation steps and add a screenshot. I hope you could understand what this add-in can do.

  • Hi, Takeshi for clarity it might help to provide some information: 1) provide a screenshot showing what this add-in does e.g. is it the reading direction marker that is added? 2) identify what the batch file/executable does/modifies in the user's EA setup - always a worry, particularly if you then want to remove the add-in and, if something isn't working, to know what is placed where helps. I'm certainly interested if this provides a way of setting the reading direction of a relationship as this is something I'd like to be able to add to the one for the TRAK enterprise architecture framework. Thanks. Nic

    • I am very sorry that I didn't realize your comment. Yesterday the community person told me that your comment (and all other comments) are not approved. 1) I will add the screenshot and update later. 2) the add-in adds the reading direction mark when a connector name is changed at the first time. After the addition, the add-in does not work any longer. No problem to remove the add-in, the added reading direction marks are still there.