Page 1 of 1

[GiDlist] TCL Extension Commands

Posted: Wed Feb 24, 2010 8:45 pm
by Shriram
Hi,



I wanted to know if the commands listed in the chapter "TCL/TK Extension" in
the reference manual has all the complete listing of commands.



I am asking this because, in the "caltep2000.tcl" from the problemtype
Caltep 2000 the following commands are used:



GidChangeDataLabel ,GidAddUserDataOptions, GidOpenConditions etc.



I could not find these commands in the reference manual. If I try to use
these, then it doesn't work properly as I don't have the reference to
complete syntax to these commands. Please let me know how I can have access
to all the commands. Where can I find the syntax for commands like these?
Maybe I am not using the proper manual or not searching for commands
properly.



Thanks,





P.S. I am using GiD version 9.0.2 and the pdf manual I have is Version 9.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20100224/8733cd7b/attachment.htm

[GiDlist] TCL Extension Commands

Posted: Mon Mar 01, 2010 11:21 am
by escolano
These Tcl procedures are not explained in any manual,
There is a lot of tcl code inside our GiD /scripts folder to create all GiD windows, etc.
This code are simple text files that could be read by any user (e.g. for learning), but in general is unrecommended
to directly call our undocumented procedures, because we can change them in future versions.

The only exception is the dev_kit.tcl file, that include some common procedures of interest for problemtype developers,
and because we are aware of this third part use we try to maintain its syntax and features for all versions.

You can see some comments of the related functions inside the DataWindows.tcl file,
These are the comments explaining its syntax:

# Procedure GidChangeDataLabel
# Modify the text of GiD data menus:
# - Conditions, Materials, Problem Data, Interval Data,...
# Arguments:
# GidLabel -- Text key (in english, not translate it!!), could be some of:
# "Problem type" "Data units" "Interval" "Local axes" "Conditions" "Materials"
# "Interval Data" "Problem Data"
# NewLabel -- New text (translated)

proc GidChangeDataLabel { GidLabel NewLabel {Singular ""} }

# Procedure GidAddUserDataOptions
# Add a new entry to the data menu of GiD.
# Arguments:
# L -- Label of the option. In order to add a separator entry, it must be passed the value "---"
# A -- script to execute when the option is selected
# W -- Position of the option:
# an integer or end to indicate the last position in the menu.
# end is the default value if you omite this argument.
# Acc -- Acceleration key combination.

proc GidAddUserDataOptions { L {A ""} {W end} {Acc ""}

# Procedure GidOpenConditions
# Open the conditions window for a specific book.
# Arguments:
# Book -- Book's name. If you omit this argument the default will be used

proc GidOpenConditions { {Book "Default"} }
----- Original Message -----
From: Shriram
To: gidlist at gatxan.cimne.upc.edu
Sent: Wednesday, February 24, 2010 8:34 PM
Subject: [GiDlist] TCL Extension Commands


Hi,



I wanted to know if the commands listed in the chapter "TCL/TK Extension" in the reference manual has all the complete listing of commands.



I am asking this because, in the "caltep2000.tcl" from the problemtype Caltep 2000 the following commands are used:



GidChangeDataLabel ,GidAddUserDataOptions, GidOpenConditions etc.



I could not find these commands in the reference manual. If I try to use these, then it doesn't work properly as I don't have the reference to complete syntax to these commands. Please let me know how I can have access to all the commands. Where can I find the syntax for commands like these? Maybe I am not using the proper manual or not searching for commands properly.



Thanks,





P.S. I am using GiD version 9.0.2 and the pdf manual I have is Version 9.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20100301/3bdcc5d1/attachment.htm