Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: felipe on October 26, 2003, 03:38:37 pm
-
I work with C# and Nant (I'm not using Visual Studio, instead i use a text editor and a compiler). Can somebody tell me what is the name of the namespace that I have to import in my C# code to use the Automation Interface? (I mean "using xxxxx" )
Thanks!
-
I don't know Nant but EA/Add-ins are COM based objects so you may want to start sniffing in that direction.
Phil Bachmann
Sparx Systems
-
It's a while since the question was asked, but lots of people seem to be reading the question...
If you're using .net without Visual Studio, then you may want to look at SharpDevelop http://www.icsharpcode.net/OpenSource/SD/ - referencing COM servers like EA is much easier that way.
Jon
-
Hi!
You need to run TLBIMP tool which will generate a .Net Interop Assembly for EA's type library.
TLBIMP can be found in the free .Net Framework SDK
Here is a sample commandline:
C:\SDK\v1.1\Bin\TlbImp.exe EA.tlb
It will generate EA.dll which can be added to your C# project and you can use it without any problems.
Thanks,
Kopi
-
Hi Kopi,
Any idea of how it could be done for an NT based system (SDK wont run only the .net environment)
tia
Bruce
-
Hi!
What do you mean on NT based systems ?
You only need to generate this DLL once...then use it...
Please describe your problem in more detail.
Thanks,
Kopi
-
We have NT4 as the operating system here. You cannot install the .Net SDK on anything less than Win2000, only the framework. I use #D as the IDE.
So I was wondering if there was another way to generate the Interop assembly.
B
-
Install the SDK on an XP and copy it onto the NT4 box and run :-)
Any problems with this approach?