I have created a VB class to manipulate a CATIA project. The VB code is compiled into a dll loaded into a C# project.
Imports ProductStructureTypeLib
Imports INFITF
Imports MECMOD
Public Class MyCATIAClass
Private catia As INFITF.Application
Public Sub New()
catia = GetObject(, "CATIA.Application")
End Sub
Public Sub doStuff()
' do stuff
End Sub
End Class
And in C#:
MyCATIAClass catOb = new MyCATIAClass();
catOb.doStuff();
This works just fine. My question is: Is it possible to run the method in batch mode? this would significantly increase the performance at run time.