Autor
|
Thema: How to run catutil from c# program (1068 mal gelesen)
|
sina123 Mitglied
Beiträge: 47 Registriert: 26.11.2018
|
erstellt am: 03. Jan. 2019 15:52 <-- editieren / zitieren --> Unities abgeben:
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: D:\...\CATSTART.exe –run CATUTIL - Name UpdateBatch D:\batchparam.xml -env CATIA_P1.V5-6R2016.B26 -direnv D:\opt\catia\CATEnv Is this the right way to run a catutil(i found this after a lot of googling though), can anybody guide! Thanks! Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP |
bgrittmann Moderator Konstrukteur
Beiträge: 11780 Registriert: 30.11.2006 CATIA V5R19
|
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. Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP |
sina123 Mitglied
Beiträge: 47 Registriert: 26.11.2018
|
erstellt am: 03. Jan. 2019 16:25 <-- editieren / zitieren --> Unities abgeben:
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? Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP |
sina123 Mitglied
Beiträge: 47 Registriert: 26.11.2018
|
erstellt am: 03. Jan. 2019 16:51 <-- editieren / zitieren --> Unities abgeben:
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." Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP |
bgrittmann Moderator Konstrukteur
Beiträge: 11780 Registriert: 30.11.2006 CATIA V5R19
|
erstellt am: 03. Jan. 2019 19:17 <-- editieren / zitieren --> Unities abgeben: Nur für sina123
Hi To our fist post: What have you chanced? It it worked before. To your second: When do you get this error? During the batch? During a c# code? regards, Bernd ------------------ Warum einfach, wenn es auch kompliziert geht. Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP |
sina123 Mitglied
Beiträge: 47 Registriert: 26.11.2018
|
erstellt am: 04. Jan. 2019 09:08 <-- editieren / zitieren --> Unities abgeben:
|
sina123 Mitglied
Beiträge: 47 Registriert: 26.11.2018
|
erstellt am: 09. Jan. 2019 10:29 <-- editieren / zitieren --> Unities abgeben:
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); Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP |
| AI Integration Developer (m/w/d) | Die exocad GmbH ist ein dynamisches und innovatives Softwareunternehmen. 2010 als Spin-off des weltbekannten Fraunhofer-Instituts für Graphische Datenverarbeitung gegründet und mittlerweile Teil der Align Technology, entwickeln wir CAD-Softwarelösungen für die digitale Zahntechnik. Zu unserem internationalen Kundenkreis gehören namhafte Firmen der Dental-branche. Mehr Informationen über uns und unsere Produkte finden Sie auf exocad.... | Anzeige ansehen | Datenbankentwicklung, Data Warehouse, Business Intelligence |
|
bgrittmann Moderator Konstrukteur
Beiträge: 11780 Registriert: 30.11.2006 CATIA V5R19
|
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. Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP |