CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ANSYS Meshing & Geometry (https://www.cfd-online.com/Forums/ansys-meshing/)
-   -   [ICEM] Starting ICEM as Batch run (https://www.cfd-online.com/Forums/ansys-meshing/126774-starting-icem-batch-run.html)

re5pect November 26, 2013 04:15

Starting ICEM as Batch run
 
Hi,
I'm creating a tin-File with Ansys Turbogrid and I want to open this Geometry with Solid Edge ST4. Therefor I converted the file with ICEM from tin to parasolid. Now I'm looking for a possibility to make this transformation by batch which will be called by an Excel VBA Command.
I created a transform.rpl file in which stands the following code:

ic_trans_tetin_ps C:/Users/Documents//geom.tin C:/Users/Documents/geom.x_t

I now want to call this Script File in Icem-Batch-Mode. Therefor I use this VBA-Code:

Sub StartICEMConvert()
Dim cmdLine5 As String
cmdLine5 = "C:\Program Files\ANSYS Inc\v145\icemcfd\win64_amd\bin\icemcfd.bat -batch " & Application.ActiveWorkbook.Path & "/icemtf.rpl"
MsgBox cmdLine5
Shell cmdLine5, vbMinimizedNoFocus
End Sub


Calling the Macro opens the Windows Command Line and brings this error there:
"Checking for License..... Failed" :( But the transformation works fine in GUI-Mode? I don't understand why then the license fails.... Or is anything wrong with my Code?
Would be very kind if you would have a solution for this Problem (perhaps another way to convert tin-Files) :)
Thanks in advance!
Johannes

Hoyskipoyski April 8, 2015 04:38

Hey,
sorry for putting this up again, but i also needed to start icem as batch and took me some time to figure it out on windows.
If you want to run a replay file in batch mode without opening the gui use the following line:
\"ANSYS Inc"\v150\icemcfd\win64_amd\bin\med_batch.exe -batch -script yourscript.tcl > logfile.log

Make sure to adjust the path of the med_batch.exe . Of course your script can be a replay file.


All times are GMT -4. The time now is 09:50.