Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Starting an Ansys Batch Run from VBA

Status
Not open for further replies.

JaStKn

Mechanical
Joined
Jan 11, 2003
Messages
17
Location
DE
Hi!

I am looking for an Inputstream to start an Ansys Batch Run from Visual Basic for Application. Can anybody help me?

Thanks.
 
See ANSYS help for details of the following (version 8 details below).

Chpater 3.4.1. Starting a Batch Job from the Command Line
...
...


Starting Batch Mode from the Windows Command Line

You can also start a batch job in Windows by issuing the ANSYS execution command directly from the MS-DOS command prompt window. The format for the command depends on whether you want ANSYS to run in the foreground or the background:

Foreground execution:

&quot;<drive>:\Program Files\Ansys Inc\V80\ANSYS\bin\<platform>\ansys80&quot; -b -i inputname -o outputname

To run multiple consecutive jobs on Windows systems, create and run a batch file containing commands similar to the example below:

set ANSYS80_PRODUCT=ANE3FL
set ANS_CONSEC=YES
&quot;C:\Program Files\Ansys Inc\V80\ANSYS\bin\intel
\ansys80&quot; -b -i vm1.dat -o vm1.out
&quot;C:\Program Files\Ansys Inc\V80\ANSYS\bin\intel
\ansys80&quot; -b -i vm2.dat -o vm2.out
&quot;C:\Program Files\Ansys Inc\V80\ANSYS\bin\intel
\ansys80&quot; -b -i vm3.dat -o vm3.out

Setting ANS_CONSEC=YES disables ANSYS dialog boxes so that multiple jobs can run consecutively without waiting for user input.

Note: The example above assumes that the ANSYS product that you are running is ANSYS Multiphysics, which has a product variable of ane3fl.

Hope the above helps,

-- drej --
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top