Book a Demo

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

Pages: [1]
1
Automation Interface, Add-Ins and Tools / Re: Making Add-Ins COM-visible
« on: December 03, 2018, 08:28:37 pm »
Hi Geert,

I compared my solution with yours and the problem seems to be that I chose the project as .NET Standard instead of .NET Framwork Class Library.
Now the Add-In works as expected.
Thanks for help!

Raya

2
Automation Interface, Add-Ins and Tools / Making Add-Ins COM-visible
« on: December 03, 2018, 07:08:31 pm »
Hello Everybody,

I tried to write a small C# Add-In near to the discription on https://bellekens.com/2011/01/29/tutorial-create-your-first-c-enterprise-architect-addin-in-10-minutes/.
For the new project I chose a .NET Standard Class Library and referenced the Interop.EA.dll as described. Then I appended the code and added the registry key.
The problem I had following the instrunctions were making the assembly COM-visible and Register for COM interop. I read that the Assembly Informations in Visual Studio 2017 can be found in the "Application" tab, but in my case the
"Assembly Information" button was missing. Furthermore the Checkbox "Make assembly COM-visible" is greyed out.
To solve this problem I added in the C#-sharp code " [ComVisible(true)]" to the class and " [ComRegisterFunctionAttribute]" but the Add-In doesn't work. In the EA "Manage Add-Ins" my Add-In has the Status "Error Missing".
Perhaps it was the wrong way choosing a .NET Standard Class Library, I'm really new in .NET developments.

For backround information: I'm using Visual Studio Community 2017, EA 14 on a Windows 10 system.

Thanks for help!

Pages: [1]