Cancel
Showing results for 
Search instead for 
Did you mean: 

TcIC catia2jt.bat for local convertion script

Builder
Builder

Hi all

 

As mentioned in Siemens Bidrectional JT Translator for Catia, there is two mode of convertion, one by Translation service and another by local convertion script.

 

I wasn't able to find the correct config for "C:\TCIC_V5\bin\WIN32\catia2jt.bat" local script to convert catia v5 files by siemens translator.

 

It seems that it never called by Save Manager window. Actually the ETS option in TC is disabled so I think It shouldn't submit any dispatcher task, but when I check translation admin, there are tasks which submitted for catia conversion.

 

Could anyone please help how to use local convertion by catia save manager instead of translation service and what is the correct config in catia2jt.bat file?

 

Thanks for your attention

12 REPLIES

Re: TcIC catia2jt.bat for local convertion script

Genius
Genius

try with setting the below preference with mentioned value.

 

CATIA_ETS_catiav5tojtdirect_available=false

ETS_available=NO

Re: TcIC catia2jt.bat for local convertion script

Builder
Builder

Thanks. I've changed the options and it leads to the empty Jt file creation without any named reference.

I think the C:\TCIC_V5\bin\WIN32\catia2jt.bat is not called yet. Is there any filepath to introduce catia2jt script for TC or Catia application.

 

Also could you please take a look at my catia2jt.bat below. Would you think if any correction needed?

set TS_INST="C:\Progra~1\Siemens\JTTranslators\CATIAV5\12.0"
set CATIAV5_ENV=Teamcenter_Integration_for_CATIAV5
set CATIAV5_DIRENV=C:\ProgramData\DassaultSystemes\CATEnv
set TCICV5_DIR = "C:\TCIC_V5" 
set V5_EXE=%TS_INST%\jt_catiav5.exe

IF [%1]==[] goto END
IF [%2]==[] goto END
IF [%3]==[] goto END
IF [%1]==[0] goto PRODUCT
goto V5  

:PRODUCT
    IF NOT EXIST "%V5_EXE%" Goto TRANSLATOR_ERROR
    call %V5_EXE% "%~2" -outputDirectory="%~3" -LogFileName="cat_file" -appendCADExtension="none" "%TCICV5_DIR%\bin\WIN32\convert_catiav5producttojt.config">"%~3"\cattojt.out
    goto END
:V5
    IF NOT EXIST "%V5_EXE%" Goto TRANSLATOR_ERROR	
    call %V5_EXE% -dir="%~2" -outputDirectory="%~3" -LogFileName="cat_file" -appendCADExtension="none" %TS_INST%\etc\catiatojt.config>"%~3"\cattojt.out
    goto END

:TRANSLATOR_ERROR
Exit 10
:END
Exit 0

Re: TcIC catia2jt.bat for local convertion script

Genius
Genius

did JT Translation works natively on machine? you can check running command on command prompt for JT Translation

Re: TcIC catia2jt.bat for local convertion script

Builder
Builder

Yes it works manually with the below syntax:

jt_catiav5.exe <InputFile> <ConfigFile>

But the problem is that no inputfile parameter has passed to C:\TCIC_V5\bin\WIN32\catia2jt.bat.

I've checked for first to third parameters passed to this batchscript but no inputfile, it's just working directory without any filename.

The script content is wrong.

 

Is there any environment variable which set among this translation process who I use to prepare input parameters of batchscript?

 

Thanks

Re: TcIC catia2jt.bat for local convertion script

Genius
Genius

what are the values for the different preferences start with COMMONcatiatojt* ?

Re: TcIC catia2jt.bat for local convertion script

Builder
Builder

They are as follow:

 

COMMONcatiatojtV4_ets_ds_types			catia
COMMONcatiatojt_CATPart_ets_nr_types	        catpart
COMMONcatiatojt_CATProduct_ets_nr_types	        catproduct
COMMONcatiatojt_catia_ets_nr_types		catia
COMMONcatiatojt_ets_ds_types			catpart & catproduct

 

There is no COMMONcatiatojtV5_ets_ds_types between them.

Re: TcIC catia2jt.bat for local convertion script

Genius
Genius
COMMONcatiatojt_ets_ds_types

above preference must be with Value

CATPart 

CATProduct

 

and not in lower case.

Re: TcIC catia2jt.bat for local convertion script

Builder
Builder

Yes it has true value. I mean:

CATPart 

CATProduct

 

I just typed them in one line. Option had the correct values.

Re: TcIC catia2jt.bat for local convertion script

Genius
Genius

Doesnt it list JT created in Final Save Panel of TCIC Save Process? May be refresh issue in Teamcenter?