Possible to source tcl file with arguments
Posted: Mon Aug 13, 2018 12:39 pm
I would like to run GiD from the command line and have a tcl script act on it as follows:
gid -n -t tcl_script_path
Unfortunately my script also needs 2 command line arguments. So I tried this
gid -n -t "tcl_script_path arg1 arg2"
Which didn't work. Then I tried to source it from within GiD session as follows:
-np- source {tcl_script_path arg1 arg2}
But I got the following error Error: couldn't read file ....
How do I run a tcl script on GiD using command line arguments from the cmd command line (black screen)? Thanks...
gid -n -t tcl_script_path
Unfortunately my script also needs 2 command line arguments. So I tried this
gid -n -t "tcl_script_path arg1 arg2"
Which didn't work. Then I tried to source it from within GiD session as follows:
-np- source {tcl_script_path arg1 arg2}
But I got the following error Error: couldn't read file ....
How do I run a tcl script on GiD using command line arguments from the cmd command line (black screen)? Thanks...