|
[Sponsors] |
Ansa batch mode for already running ansa window |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 22, 2018, 09:26 |
Ansa batch mode for already running ansa window
|
#1 |
New Member
Viswanathan
Join Date: Jul 2018
Posts: 9
Rep Power: 8 |
Dear all,
I am using ansa batch comand to open and load script Example: Ansa.exe -i file name -loadscript scriptname The above comand will open new ansa load file and run script. My requirement is i already opened ansa. Files should load on that. Example: Already openned ansa process id -i file name -loadscript file name. How to do this? |
|
July 23, 2018, 03:18 |
|
#2 | |
Member
Maries
Join Date: Mar 2010
Location: Cologne, Germany
Posts: 75
Rep Power: 16 |
Quote:
This is called interprocess communication in programming. I am this using program called autoit. I assume one can do the same thing with any other programming language also. I am also very much interested in this topic. |
||
July 25, 2018, 14:16 |
|
#3 |
New Member
Viswanathan
Join Date: Jul 2018
Posts: 9
Rep Power: 8 |
hi rmaries,
i try to call ansa by batch file or by python. if you know anyother language or process to acheive this , that is fine. i will learn that. if i can controll arlerady opened program by another tool, it will be help me very much. |
|
July 26, 2018, 05:24 |
|
#4 |
Member
Maries
Join Date: Mar 2010
Location: Cologne, Germany
Posts: 75
Rep Power: 16 |
I am doing an inefficient way as of now to achieve this. Sending keypress to ansa window. If ansa window is active and someone is typing in keyboard, all the pressed keys are appeared in search function and filter. So to open a ansa file, one can type
Code:
File : Open recent: C:\Ansa\ansa_file.ansa Code:
User: Load_script(script path) Efficient way it use other proved methods like Pipes Memory mapped files RPC(remote procedure call) I prefer this. I need to learn how to do that with python. There is a separate library called xmlrpc for this. With this we can make ansa to work like server waiting for command from other process. Also need to learn multiprocessing in python for this. You can go through other methods in python docs https://docs.python.org/3/library/ipc.html If possible share your code in git. Thanks |
|
July 26, 2018, 09:54 |
|
#5 |
New Member
Viswanathan
Join Date: Jul 2018
Posts: 9
Rep Power: 8 |
Thank you. i will check it and inform you.
|
|
May 21, 2020, 16:08 |
|
#6 | |
New Member
Ujjwal Mohanty
Join Date: Mar 2018
Posts: 18
Rep Power: 8 |
Quote:
Hi Viswa, How did you manage to launch Ansa? I tried using the Popen function in Python, but I get a fatal error and the window closes. I tried Popen('location/ansa64.bat'). Could you please help? |
||
Tags |
ansa, batch mode, scripting line se |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] icem cfd batch mode | srobin11 | ANSYS Meshing & Geometry | 20 | August 2, 2020 19:40 |
Having problems running transient fluent simulation in batch mode | obylong | FLUENT | 1 | August 15, 2014 00:58 |
[ICEM] ICEM CFD error when running in batch mode | bgp723 | ANSYS Meshing & Geometry | 0 | August 14, 2014 14:45 |
Running Job in Batch mode (EFD) | Nick Sessions | FloEFD, FloWorks & FloTHERM | 0 | April 16, 2008 17:44 |
Batch mode | swapnil | CFX | 5 | November 23, 2002 10:38 |