Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
General Mechanical

General Mechanical

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

Mechanical scripting

    • s310413
      Subscriber

      Hi everyone, I'm trying to automate a simulation and I need to write the input file (.dat) of a static structural analysis. In mechanical ACT console I tried with the command

      ExtAPI.DataModel.Project.Model.Analyses[0].WriteInputFile('filename')

      but I don't know if and where it is saving the .dat file. Does anyone know where the file is saved and eventually how can save it in a desired folder? Thanks

    • ErKo
      Ansys Employee

      Hi so in file name you give also the directory path so e.g. , say it is in D drive and folder called Test:

      See here how it is done:

      https://discuss.ansys.com/discussion/142/how-can-i-write-an-input-file-through-act

      All the best

      Erik

Viewing 1 reply thread
  • The topic ‘Mechanical scripting’ is closed to new replies.
[bingo_chatbox]