×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Starting an Ansys Batch Run from VBA

Starting an Ansys Batch Run from VBA

Starting an Ansys Batch Run from VBA

(OP)
Hi!

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

Thanks.

RE: Starting an Ansys Batch Run from VBA

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:

"<drive>:\Program Files\Ansys Inc\V80\ANSYS\bin\<platform>\ansys80" -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
"C:\Program Files\Ansys Inc\V80\ANSYS\bin\intel
     \ansys80" -b -i vm1.dat -o vm1.out
"C:\Program Files\Ansys Inc\V80\ANSYS\bin\intel
     \ansys80" -b -i vm2.dat -o vm2.out
"C:\Program Files\Ansys Inc\V80\ANSYS\bin\intel
     \ansys80" -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 --

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources