First Public Release of BuildingTcl

Forum for OpenSees users to post questions, comments, etc. on the use of the OpenSees interpreter, OpenSees.exe

Moderators: silvia, selimgunay, Moderators

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

First Public Release of BuildingTcl

Post by silvia »

BuildingTcl is a library of Tcl commands to build and analyze 2D building frames using OpenSees. The BuildingTclViewer is a graphical user interface for BuildingTcl -- it allows the user to run the numerical simulations interactively and view the analysis results interactively as well.


neesforge.nees.org/projects/buildingtcl/

This is the first public release. Please post all comments and questions in this thread. However, i will be gone on holiday until August 19th.
i have tried to make the documentation complete, but it may not be perfect, as the libraries are still evolving.
Last edited by silvia on Tue Oct 21, 2008 1:41 pm, edited 2 times in total.
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
ebe79442114
Posts: 73
Joined: Tue Feb 20, 2007 6:48 am
Location: IIEES
Contact:

Post by ebe79442114 »

It's interesting :shock:

Can i make it work on linux?

please excuse me for poor english. :oops:
operating system: Debian Gnu/Linux lenny 64Bit debian (DOT) org/
email : e.roknabadi (AT) iiees.ac.ir
silvia
Posts: 3909
Joined: Tue Jan 11, 2005 7:44 am
Location: Degenkolb Engineers
Contact:

Post by silvia »

it should work, as it is in Tcl/Tk.
please try it and let me know.
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
hresquivelo
Posts: 40
Joined: Wed Feb 06, 2008 10:53 am
Location: Universidad del Norte

Post by hresquivelo »

Hi Silvia.

Since I use a mac, the installation file "BuildingTclInstall.bat" won't execute.
My question is: what does the installation file do in order to do it myself by hand.

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

Post by silvia »

open up the file and see, it just creates tcl files. the bat files are ascii files.
i can show you when i return from vacation, after the 19th.
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
hresquivelo
Posts: 40
Joined: Wed Feb 06, 2008 10:53 am
Location: Universidad del Norte

Post by hresquivelo »

Hi Silvia,

Please help me on how to get those files.

I'll appreciate your help.
silvia
Posts: 3909
Joined: Tue Jan 11, 2005 7:44 am
Location: Degenkolb Engineers
Contact:

Post by silvia »

honestly, i don't know how to make it work on mac, please try it on a windows os, understand the files and see if you can do it, i don't know how macs handle paths and things like that.
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
sb1966
Posts: 151
Joined: Wed Jul 23, 2008 8:08 am
Location: NERIST, INDIA
Contact:

Post by sb1966 »

Hi Silvia and all,

Thanks a lot for this interface. I would like to know how to make it work in Linux. Hope some one will give me the basic idea. Is it possible to have a symbolic link to OpenSees bin in place of OpenSees.exe?

Thanks

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

Post by silvia »

for now, i designed it for windows.
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
ebe79442114
Posts: 73
Joined: Tue Feb 20, 2007 6:48 am
Location: IIEES
Contact:

Post by ebe79442114 »

Hi !

I can run graphical user interface under linux with below command and sum change to some filename in /home/ebi/Desktop/BuildingTcl_Release/BuildingTclProgramFiles/LibImages folder, because linux is sensible to small and large letters :

Code: Select all

wish /home/ebi/Desktop/BuildingTcl_Release/myBuildingTclViewer.tcl
wish equals to tk command in windows.

www freeimagehosting.net/uploads/th.326cd41771.png

while content of myBuildingTclViewer.tcl file is look likes this:

Code: Select all

################################ 
# BuildingTcl Library Files Setup              
# 
#      Silvia Mazzoni, 2008                          
#         University of California, Berkeley      
################################ 
# place this file in your working directory # 
#   source it within OpenSeesTk                # 
################################ 
#
# Folder Path for all BuildingTcl Library Files
variable LibPath "/home/ebi/Desktop/BuildingTcl_Release/BuildingTclProgramFiles";
#
# Add the BuildingTcl Commands to Tcl
source $LibPath/LibBuildingTclLibraryFiles.tcl;
#
# set up
#
# initialize all data lists and arrays
initializeAll		;  
#
global GlobalizeUnits
eval $GlobalizeUnits;
#
#
# run viewer
#
BuildingTclViewer
#

and I can load input file, but when I press analyze key, it gives me an error :

Error: invalid command name “ wipe”.

www freeimagehosting.net/uploads/9ce2d7688d.png

It's true. Because wipe is an opensees command.

However, when I run below command this error appear:

Code: Select all

opensees /home/ebi/Desktop/BuildingTcl_Release/myBuildingTclViewer.tcl
error:

Code: Select all

invalid command name "winfo"
    while executing
"winfo screenwidth ."
    (procedure "BuildingTclViewer" line 8)
    invoked from within
"BuildingTclViewer"
    (file "/home/ebi/Desktop/BuildingTcl_Release/myBuildingTclViewer.tcl" line 28)

this is also true. Because winfo command is a wish command and opensees return an error.

I think it must be runnable under linux with some try.

Please excuse me for my poor english.
Last edited by ebe79442114 on Thu Sep 25, 2008 2:40 pm, edited 1 time in total.
operating system: Debian Gnu/Linux lenny 64Bit debian (DOT) org/
email : e.roknabadi (AT) iiees.ac.ir
silvia
Posts: 3909
Joined: Tue Jan 11, 2005 7:44 am
Location: Degenkolb Engineers
Contact:

Post by silvia »

are you running the Tk version of OpenSees????
winfo is a Tk command, not a Tcl one.
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
ebe79442114
Posts: 73
Joined: Tue Feb 20, 2007 6:48 am
Location: IIEES
Contact:

Post by ebe79442114 »

silvia wrote:are you running the Tk version of OpenSees????
winfo is a Tk command, not a Tcl one.
I get source code and compile it under debian GNU/Linux. I don't know how can i integrate opensees with Tk (wish in linux).

thanks.
operating system: Debian Gnu/Linux lenny 64Bit debian (DOT) org/
email : e.roknabadi (AT) iiees.ac.ir
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

instead of typing 'make' type 'make tk' to make the tk version under linux.
ebe79442114
Posts: 73
Joined: Tue Feb 20, 2007 6:48 am
Location: IIEES
Contact:

Post by ebe79442114 »

thanks.

i will test it.
operating system: Debian Gnu/Linux lenny 64Bit debian (DOT) org/
email : e.roknabadi (AT) iiees.ac.ir
ebe79442114
Posts: 73
Joined: Tue Feb 20, 2007 6:48 am
Location: IIEES
Contact:

Post by ebe79442114 »

I continue discuss in this topic that related to my problem, please refer to it and answer me:

opensees.berkeley.edu/community/viewtopic.php?p=14360#14360
operating system: Debian Gnu/Linux lenny 64Bit debian (DOT) org/
email : e.roknabadi (AT) iiees.ac.ir
Post Reply