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 - chrissO

Pages: [1]
1
Automation Interface, Add-Ins and Tools / EA 14.0 64 bit C#API
« on: August 01, 2018, 08:19:02 pm »
Does EA14.0 have a 64 bit C# API and/or a EA 64 bit installation?

2
Thank you!
Repository.LoadAddins() is the solution.

3
EA: V13.0.1310
OS: Windows 7 Professional

4
Hello,

for test purpose I start EA as app.

            App app = new App();
            app.Repository.OpenFile("test.eap");
            app.Visible = true;

Why are all Addins on disabled Status in the Extend ->Manage->Add-Ins-Window and no Addin-Menu exists? How can I enable them?
When I start EA via double-Click all Addins are enabled in the  Extend ->Manage->Add-Ins-Window, the Addin-Menus exist, the Addins can be controlled/started via Addin-Menu.

I must missing something, but what?

Any help or advice is welcome.

Chris

Addition to the problem description:

If I click on  Extend ->Manage->Add-Ins-Window the following happens: The Addin (extra input mask) shows shortly up and is closed immediatly. Status of the addin is still disabled.

5
Any idea of a workaround?

6
I am developing an EA Add-in where it is possible to change attributes of diagram elements.
The idea is to save the data entered in the Add-in (separate Window as Client) if the item is deselected by selecting another item.

The chronological order is: Select item1 and change attributes in the Add-in (Client) then select item2. After selecting item2 the changed data of item1 is saved in EA and the attributes of item2 can be edited in Add-in. The Tagged Values of the selected item are displayed in the Tagged Values Window of EA.

My problem occurs only if I deselect a Note(=item1) in the Diagram by selecting a Connector(=item2).

First problem: Message that another user possibly modified the diagram
Second problem: After avoiding above message the Tagged Values-Window of the selected Connector is empty

Problem1:
1) A Connector is selected and the Tagged Values of this Connector are displayed in the Tagged Values-Window .
2) Changes of  deselected Note are saved in EA via API.
3) The Connector is still selected and the Tagged Values displayed in the Tagged Values-Window .
But I get the message that another user possibly modified the diagram.

My solution of problem1 to avoid the message:
The following code is processed in EA_OnNotifyContextItemModified.

EA.ObjectType oType = repository.GetContextItem(out obj);
if (oType == EA.ObjectType.otConnector
{
       repository.RefreshOpenDiagrams(true);   //avoid message that another user possibly modified the diagram                                  
        repository.GetCurrentDiagram().SelectedConnector = (Connector)obj;
}

Problem2:
Immediately after repository.RefreshOpenDiagrams(true); the Tagged Values-Window  of the Connector is empty .
After “repository.GetCurrentDiagram().SelectedConnector = (Connector)obj;”  the Connector is selected, but  the Tagged Values-Window is still empty.

How can I refresh this Tagged Values-Window of the selected Connector via API?

I tried:
repository.GetCurrentDiagram().SelectedConnector.TaggedValues.Refresh();
But this does not help.

Pages: [1]