how to creat TCL/TK file, where to edit them and creat them?

For posts concerning the documentation, errors, ommissions, general comments, etc.

Moderators: silvia, selimgunay, Moderators

Post Reply
cctvcctv
Posts: 48
Joined: Mon Apr 04, 2005 9:45 pm
Location: UC Irvine-Utah State University

how to creat TCL/TK file, where to edit them and creat them?

Post by cctvcctv » Fri May 06, 2005 9:37 pm

How to creat TCL file? I creat it by edit them in wordpad. although it is created, it can not work.

Thank you very much!

silvia
Posts: 3909
Joined: Tue Jan 11, 2005 7:44 am
Location: Degenkolb Engineers
Contact:

Post by silvia » Sat May 07, 2005 5:28 am

what do you mean "it cannot work'? do you have OpenSees and Tcl installed? are you able to sun tcl commands at the opensees prompt?
an input file should have the extension .tcl, which means that in notepad, or wordpad, you need to save it as
filename.tcl and select the "all files" type below, otherwise it automatically saves it as filename.tcl.txt
then in opensees you type:
source filename.tcl

this should work.

you might want to look at the getting started document at the bottom of the manual:
http://opensees.berkeley.edu/OpenSees/m ... sermanual/
or at:
http://peer.berkeley.edu/~silvia/OpenSe ... ngstarted/
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104

cctvcctv
Posts: 48
Joined: Mon Apr 04, 2005 9:45 pm
Location: UC Irvine-Utah State University

Post by cctvcctv » Sat May 07, 2005 10:23 am

i c, thanks

Hua
Posts: 2
Joined: Sat May 07, 2005 11:37 am

Post by Hua » Sat May 07, 2005 11:53 am

I have the similar question. I edited a script file using Textpad and save it in .tcl format. But When I try to run it with OpenSees. But OpenSees can not find it. I use the following command" source TrussExample.tcl.Any
Any problem with it? If you know, will you please tell me?


thanks

berktaftali
Posts: 68
Joined: Fri Jul 02, 2004 6:10 am
Location: Computers and Structures, Inc.

Post by berktaftali » Sat May 07, 2005 12:52 pm

If you do not have a class defined for tcl files, texpad will try to save it as a text file. You probably ended up saving the file as

Code: Select all

TrussExample.tcl.txt
Try using quotes when texpad asks for the file name, like this

Code: Select all

"TrussExample.tcl"
and you shouldn't have a problem...

Hope this helps...
Berk Taftali
Georgia Institute of Technology
Ph.D. Candidate, Structural Engineering, Mechanics, and Materials
School of Civil and Environmental Engineering
Atlanta, GA 30332 USA
Email: gte994y@mail.gatech.edu

Post Reply