C# and V5 Automation : any API limitation?

Jean-Baptiste Leydet

C# and V5 Automation : any API limitation?

I am contemplating the possibility of developing a proof of concept with C# / .NET.

Is the functionality exposed by the V5 Automation API strictly identical for C# and say CATScript? (In other words, is there anything one can achieve with a CATScript macro, that can't be achieved with a C# program?)

I understand that performance could suffer from using .NET instead of running a macro in-process, but this is not my immediate concern.

Thank you!

Little Cthulhu

RE: C# and V5 Automation : any API limitation?
(in response to Jean-Baptiste Leydet)

Hi.

APIs are identical - both CATScript and C# use Automation.

Perfomance will suffer as described here.

Jean-Baptiste Leydet

RE: C# and V5 Automation : any API limitation?
(in response to Little Cthulhu)

Thanks LC,

In case anyone is interested, Dassault Systèmes doesn't support out-of-process automation of V5 (with e.g. .NET) but confirmed that it works and that the exposed API should be identical.

Perfomance will suffer as described here.

Yes I had seen this interesting thread already. This is just a POC (i.e. throw-away code) and at this point performance is a secondary concern. If all goes well I will probably do some benchmarking to quantify the performance penalty though.

Little Cthulhu

RE: C# and V5 Automation : any API limitation?
(in response to Jean-Baptiste Leydet)

https://www.coe.org/p/fo/st/topic=113&post=95857#p95857

 

More details on .NET and COM interoperability.