Hi, I have a requirement to run some utilities from my c# program. I tried to run UpdateBatch Utility with the parameter file in the following way as arguments to start process but nothing happens:
erstellt am: 03. Jan. 2019 16:08 <-- editieren / zitieren --> Unities abgeben: Nur für sina123
Hi
On the documentation there is an example. I guess you have to remove the blank before Name and use quotations marks: D:\...\CATSTART.exe –run "CATUTIL -Name UpdateBatch D:\batchparam.xml" -env CATIA_P1.V5-6R2016.B26 -direnv D:\opt\catia\CATEnv
regards, Bernd
------------------ Warum einfach, wenn es auch kompliziert geht.
That does not solve.Thanks but! and now it seems i am not able to get results from Catia directly also. I dont understand whats wrong. I had got success earlier but now it says "BATCH:Error Batch failed" for all batch utilities- I tried step conversion utility and Updatebatch from Catia manually Would it be some issue relating to my catia?
Also i keep on getting the below error (but had got an output even with the error): "Error in dictionary D:\opt\catia\B26\win_b64\code\dictionary/MecModLiveInterfaces.iid line 1 Can not add interface '{d0931b72-7702-11d6-be46-0002b35c9330} CATIBRepModeCont' The iid is already defined with interface name 'CATIBRepModCont' Check dictionaries."
Yes it worked while running the batch utility manually from catia, but never in c# code. And now it does not work at all even manually I get the error during the batch execution in catia.
So i am able to run the catutil from code as well from Catia!!
Maybe can help anyone who searches next for the same! string utilPath = @"D:\...\CATUTIL.exe -Name UpdateBatch D:\testbatch_04jan\BatchParameters_09.10.05.xml"; CATIA.SystemService.ExecuteBackgroundProcessus(@utilPath);
erstellt am: 09. Jan. 2019 11:08 <-- editieren / zitieren --> Unities abgeben: Nur für sina123
Hi
So, you use Catia from an external program to start an external process. In this case you could also start the process direct from a command-promt (cmd.exe). (I have now glue how this is done in C#)
Regards, Bernd
------------------ Warum einfach, wenn es auch kompliziert geht.