Adding online help for commands
Moderators: silvia, selimgunay, Moderators
Adding online help for commands
I am wondering how difficult it is to add online manual within OpenSees.
Right now a "help" command will display the DOS commands, wouldn't it be nice if it can display the commands available for OpenSees?
The other fancy gymmic is the autocompletion of commands, I found it difficult to remember the commands exactly as it is.
One more feature is to have OpenSees to save commands history into a file.
Right now a "help" command will display the DOS commands, wouldn't it be nice if it can display the commands available for OpenSees?
The other fancy gymmic is the autocompletion of commands, I found it difficult to remember the commands exactly as it is.
One more feature is to have OpenSees to save commands history into a file.
It is not what you can do, it is what you can dream!
i'll answer one item at at time:
the on-line manual is at:
http://opensees.berkeley.edu/OpenSees/m ... sermanual/
Also, if you type the command, it does tell you what the arguments should be, typically.
There is a Tcl editor developed by Stanford researchers, but i don't know it is is still being supported and updated.
An output file, however, would be handy, yes.
There is a Tcl editor developed by Stanford researchers, but i don't know it is is still being supported and updated. This editor does have help files.I am wondering how difficult it is to add online manual within OpenSees.
the on-line manual is at:
http://opensees.berkeley.edu/OpenSees/m ... sermanual/
they are in the above manualRight now a "help" command will display the DOS commands, wouldn't it be nice if it can display the commands available for OpenSees?
This is why you should use variables and cut and paste from the manual.The other fancy gymmic is the autocompletion of commands, I found it difficult to remember the commands exactly as it is.
Also, if you type the command, it does tell you what the arguments should be, typically.
There is a Tcl editor developed by Stanford researchers, but i don't know it is is still being supported and updated.
You really should use a script rather than using the command line.One more feature is to have OpenSees to save commands history into a file.
An output file, however, would be handy, yes.
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
I guess what I am really interested in is some kind of automatic documentation feature.
All the OpenSees Tcl commands are provided by Tcl_AddCommand(maybe not this exact name), and in the body of the command implementation there are several lines of C/C++ codes that parses the input and put them into the corresponding variables.
Is it possible to scan these codes and build an accurate description for each command? This may not be that important for current commands because they've already been documented pretty well. Nevertheless if this gadget is available then the maintenance of that Standford tool may become much easier.
All the OpenSees Tcl commands are provided by Tcl_AddCommand(maybe not this exact name), and in the body of the command implementation there are several lines of C/C++ codes that parses the input and put them into the corresponding variables.
Is it possible to scan these codes and build an accurate description for each command? This may not be that important for current commands because they've already been documented pretty well. Nevertheless if this gadget is available then the maintenance of that Standford tool may become much easier.
It is not what you can do, it is what you can dream!
-
- Posts: 68
- Joined: Fri Jul 02, 2004 6:10 am
- Location: Computers and Structures, Inc.
Re: Adding online help for commands
I believe this is possible with the following undocumented command:Rodgers wrote:One more feature is to have OpenSees to save commands history into a file.
Code: Select all
logFile $fileName
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
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