|
[Sponsors] |
June 12, 2018, 17:51 |
Driving Ansys with Excel
|
#1 |
New Member
Simon Werner
Join Date: Jun 2018
Posts: 1
Rep Power: 0 |
Hi there,
Iīm trying to create a Excel macro which runs a Python Script in my CFX Simulation to automate simulation processes. The macro should start the Python script in Ansys and wait until itīs finished. I only found the Shell-function below on the internet. But it doesnīt work. It gives me the error "file donīt found" but the file exists and the path is correct (I tripplechecked it). And aditionally (if I understood the code right) it opens the project everytime again instead just running the Python script and waits. Does someone of you as an idea for this problem? Thank You Best regards N.Hohlbein py_path = "E:\Ansys Dateien\Ansys_Excel\updateWB2.py" wb_path = "E:\Ansys Dateien\Ansys_Excel\ExcelTower1\ExcelTower1.wbpj" launch_opt = "i" retval = Shell("""E:\Ansys\ANSYS Inc\v182\Framework\bin\Win64\RunWB2.exe -""" & launch_opt & " -R " & py_path & " -F " & wb_path, vbNormalFocus) |
|
Tags |
ansys, excel |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Command Line Run for ANSYS | Liaquat | ANSYS | 11 | April 19, 2018 10:49 |
Running Ansys in BAtch Mode | kuleuvenstudent | ANSYS | 1 | October 18, 2017 13:11 |
Excel in Ansys WB | Halle | ANSYS | 1 | May 28, 2013 03:05 |
ansys workbench interface with excel | shree272 | ANSYS | 0 | April 6, 2013 04:48 |
Exporting results from CFX to ANSYS ?? | sohail ahmed | CFX | 1 | December 20, 2007 02:10 |