Book a Demo

Author Topic: .Net Automation  (Read 4814 times)

pneutam

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
.Net Automation
« on: March 23, 2003, 10:03:49 pm »
Hi,

I've been trying to automate EA from C# and have struck a few problems.

I was hoping to use early binding from C#, but there is no EA type library in the VS.Net COM references dialog :(

Trying a lower-level method, running Tlbimp.exe on EA.exe (thought the type library might be embedded here), also fails with the error 'The input file ... is not a valid type library'.

So, is there a way to early bind to EA from C#?

If there is a .tlb file associated with the EA.exe that could be registered, I would love to get hold of it.

Cheers,
pneutam

Steve_Straley

  • EA User
  • **
  • Posts: 183
  • Karma: +0/-0
    • View Profile
Re: .Net Automation
« Reply #1 on: March 24, 2003, 05:26:55 am »
Pneutam,

I ask a similar question before I headed down this road and the reply I received was the following:

Quote
"maybe VB.Net will be integrated as well. I did all my testing using VB.Net.

C# and the automation interface are more diffcult at the moment - although we hope to improve this support in the near future also."


This was some time back and we haven't moved over to C# to test this out but I hope this helps in the meantime.

Cheers,

Steve
« Last Edit: March 24, 2003, 05:27:49 am by Steve_Straley »
Steve Straley

pneutam

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: .Net Automation
« Reply #2 on: March 24, 2003, 03:07:43 pm »
Thanks for the info Steve,

I have gone ahead with using late binding in C#, building wrappers for the underlying EA objects. It's a little more verbose in C# than in VB.Net, but still works.

I might put up a sample when I'm done ;)

Steve_Straley

  • EA User
  • **
  • Posts: 183
  • Karma: +0/-0
    • View Profile
Re: .Net Automation
« Reply #3 on: March 24, 2003, 04:45:19 pm »
Hi,

That would be cool if you could do an example.   I don't think there would be that being of a speed impact on late versus early; however, it does open a can of worms with parameter validations.   I know we will be getting into all of that once I give the go ahead to move over to C#.

Cheers,

Steve
Steve Straley