General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

What is the commande in IronPython to write the input file of an analysis ?

    • EricHDM
      Subscriber

      Hello,

      I am trying to automatize some computations of thermal analysises with Mechanical and to do so, I need the command to write the input file of my solution.

      I have tried to reccord the manual action (click on solution, then write intput file) in a journal file with the option "start reccording" in the Mechanical Scripting windows. However, nothing appears in the journal. Usually, this reccord my manual commands but not this time.

      I am looking for something like:

      Model.Analyses[3].Solution.Solve() but instead of Solve something like : "WriteInputFile". But I did not find a good candidat using the autocompletion.


      Do you now what is the command ?

      Thanks a lot,

      EHDM

    • Erik Kostson
      Ansys Employee
      YOu are correct should be:
      ExtAPI.DataModel.Project.Model.Analyses[0].WriteInputFile("C:\\Input.dat")
      All the best
      Erik
Viewing 1 reply thread
  • The topic ‘What is the commande in IronPython to write the input file of an analysis ?’ is closed to new replies.