Jump to content
Sign in to follow this  
inasiopo

TCL script files parameters

Recommended Posts

Dear all,

 

We are trying to create a tcl script that is called from a batch file with:

 

C:\....\hmbatch.exe -tcl C:\...\MyTcl.tcl

 

That works fine.

 

Our TCL then looks like:

 

variable myLocation [file normalize [info script]]
append filename1 $myLocation "Tester02.fem"
append filename2 $myLocation "Tester02.sh"


*createstringarray 2 "isosurf: 3 3 0.6 0 -1 0 0 10 30 1 0" "other_params: 1 0 0 0 10 0"
*ossmooth_12 0 1 0 1 "$filename1" "$filename2" "*.grid" 1 0 1 2

 

 

but this is not working. Apparently when trying to run the *ossmooth" command the "$filename1" and "$filename2" variables are not recognised.

 

Any help on how we can do that please??

 

 

Share this post


Link to post
Share on other sites
46 minutes ago, inasiopo said:

*createstringarray 2 "isosurf: 3 3 0.6 0 -1 0 0 10 30 1 0" "other_params: 1 0 0 0 10 0"
*ossmooth_12 0 1 0 1 "$filename1" "$filename2" "*.grid" 1 0 1 2

 

So try:

*createstringarray 2 "isosurf: 3 3 0.6 0 -1 0 0 10 30 1 0" "other_params: 1 0 0 0 10 0"
eval *ossmooth_12 0 1 0 1 "$filename1" "$filename2" "*.grid" 1 0 1 2

 

Share this post


Link to post
Share on other sites

I had a problem there.

But that is sorted now!

 

Now it exports the two variables as:

 

C:/Users/user1/Desktop/Gen/Tester02.fem
C:/Users/user1/Desktop/Gen/Tester02.sh

 

wihich is the correct path and has the files inside.

 

Still not running though! It says:

 

"Error: Invalid input model"

0

"ossmooth_12 0 1 0 1 C:/Users/user1/Desktop/Gen/Tester02.fem C:/Users/user1/Desktop/Gen/Tester02.sh *.grid 1 0 1 2"

<"eval" body line 1>

invoked from within

.........

 

Please help !!!!!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...