CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS

Driving Ansys with Excel

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 12, 2018, 17:51
Question Driving Ansys with Excel
  #1
New Member
 
Simon Werner
Join Date: Jun 2018
Posts: 1
Rep Power: 0
N.Hohlbein is on a distinguished road
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)
N.Hohlbein is offline   Reply With Quote

Reply

Tags
ansys, excel


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 13:25.