[GiDlist] creating the geometry through a tcl-file

Moderator: GiD Team

Post Reply
Andreas Friedberg

[GiDlist] creating the geometry through a tcl-file

Post by Andreas Friedberg »

Hi everybody,

I am writing a tcl-file for a problemtype. I would like to create a geometry in the graphical window of GiD by writing the needed geometrical information in a window that pops up when the problemtype is called. This window would be invoked in the "InitGIDProject"-procedure like in the tcl-tutorial with cmas2d. The difference lies in the fact that I have to create fields in which the user can write the geometrical information, and to get this information returned to the procedure "CreateGeometry".
Can anybody help?

Andreas


--
http://www.berlin.de - meine stadt im netz.
Enrique Escolano

[GiDlist] creating the geometry through a tcl-file

Post by Enrique Escolano »

This is a small tcl wizard sample (copy this directory coils.gid inside the /problemtypes directory)

Read also the advanced course documentacion (chapter3, Extending GiD with Tcl/Tk), located at:

http://gid.cimne.com/2002/material_courses.subst

Regards

Enrique Escolano





----- Original Message -----
From: "Andreas Friedberg" friedberg.andreas at berlin.de
To: gidlist at gatxan.cimne.upc.es
Sent: Friday, December 13, 2002 4:13 PM
Subject: [GiDlist] creating the geometry through a tcl-file


Hi everybody,

I am writing a tcl-file for a problemtype. I would like to create a geometry in the graphical window of GiD by writing the needed geometrical information in a window that pops up when the problemtype is called. This window would be invoked in the "InitGIDProject"-procedure like in the tcl-tutorial with cmas2d. The difference lies in the fact that I have to create fields in which the user can write the geometrical information, and to get this information returned to the procedure "CreateGeometry".
Can anybody help?

Andreas


--
http://www.berlin.de - meine stadt im netz.

_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20021213/9d064224/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 37022 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20021213/9d064224/attachment.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: coils.gid.zip
Type: application/x-zip-compressed
Size: 4942 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20021213/9d064224/attachment.bin
Pablo Perez del Castillo

[GiDlist] creating geometry through a tcl

Post by Pablo Perez del Castillo »

Hello;
I try ur sample about "coils", and i have my own menu, now i added new
funcion (move line), and i use ur comand "layer:$layeruse escape". and
Gid say "can not read variable $layeruse", When you declare that
variable???.
advanced thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20021220/206514b6/attachment.htm
Pablo Perez del Castillo

[GiDlist] creating geometry through a tcl

Post by Pablo Perez del Castillo »

I find the answer,
Thanks

Pablo Perez del Castillo escribió:

Hello;
I try ur sample about "coils", and i have my own menu, now i added new
funcion (move line), and i use ur comand "layer:$layeruse escape". and
Gid say "can not read variable $layeruse", When you declare that
variable???.
advanced thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20021220/60cc6e77/attachment.htm
Post Reply