I am working on Catia V5 automation and have a requirement to launch Catia by clicking a CatPart/ CatProduct if Catia is not already running. I tried the below code:
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = @filepath;
Process.Start(startInfo);
But I get error: System.ComponentModel.Win32Exception (0x80004005): An error occurred in sending the command to the application
Can anybody help how to solve as this code works on my machine but not in other machine. I have Catia v5 and 3dexp installed so when I tried to create instance of Catia application it opens 3d experience.
System.Type objBLType = System.Type.GetTypeFromProgID("Catia.Application");
object objBL = System.Activator.CreateInstance(objBLType);
User contributions licensed under CC BY-SA 3.0