How can I use Python and JScript to automate the task of opening Workbench, attaching geometry, opening the file in Mechanical, and writing out an input file with the default mesh?


Please see the attached archive. The path has been hardcoded for now, so drop these three files in C:scratch (or somewhere else, but you have to update the script accordingly), remove the ".txt" extensions from the files, and then either run the bat file or issue the command in the bat file.





Show Form
No comments yet. Be the first to add a comment!