You are here
add a python script to an input file
Wed, 2015-08-19 14:35 - Sarah A. Eassa
hi all
please I need to know if I can add a python script to an already written input file in abaqus ( for certain additions) , and how would i do that?
Thanks in advance :)
Forums:

There is no thing like adding
There is no thing like adding a (Python) script to an input file. But for your purpose, what you may need is to read the input file via Python script and perform the required changes to the same input file.
Please let us know what exactly you need to do if the above doesn't answer your query.
Regards
thanks for your reply
thanks for your reply
how can I read the input file via python? do you mean to change the input file to python language? how?
thanks
You may read the input file
You may read the input file as a regular text file and add/insert commands wherever necessary. OR
You may use the scripting functionality keywordBlock at the end of your python script to add stuff to the input file just created by the script.
Thanks nskatim :)
Thanks nskatim :)