TAGGED: ironpython, mechanical, scripting-journaling, thermal
-
-
May 6, 2022 at 1:00 pm
EricHDM
SubscriberHello,
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
May 6, 2022 at 4:01 pmErik Kostson
Ansys EmployeeYOu 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.
Ansys Innovation SpaceTrending discussionsTop Contributors-
3597
-
1283
-
1107
-
1068
-
983
Top Rated Tags© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-