Hi GID team!
I've been to try save all assigned data of Condition Point
Load some problems but i did not get success.
My procedures are:
proc SaveGIDProject {filespd} {
set fp [open $filespd w]
if {$fp!=""} {
#save the specific problemtype data file contents...
# global DefaultSearchDirectory
# if { ![info exists DefaultSearchDirectory] || \
# ![file isdirectory $DefaultSearchDirectory]} {
# set DefaultSearchDirectory [pwd]
# }
# set deft $DefaultSearchDirectory
# set aa [.central.s info Project]
# set ProjectName [lindex $aa 1]
# if { [file extension $ProjectName] == ".gid" } {
# set ProjectName [file root $ProjectName]
# }
# if { $ProjectName == "UNNAMED" } {
# tk_dialogRAM .gid.tmpwin error \
# [_ "Before importing, a project title is needed. Save
project to get it"] \
# error 0 OK
# return
# }
# set directory $ProjectName.gid
#WarnWinText "SaveGIDProject $filespd"
# close $fp
set dirinfo [lindex [.central.s info Project] 1]
set rootname [lindex [file split $dirinfo] end]
set from [file join [lindex [.central.s info Project]
1].gid $rootname.flavia.rst]
#set to [file rootname $filespd].flavia.rst
set to [file rootname $filespd].spd
WarnWin "Saving $to from $from"
}
}
proc AfterOpenFile { filename format error} {
WarnWinText "$filename $format $error"
if {$format == "GIDGEOMETRY_FORMAT"} {
set filespd [file join $filename [file tail
$filename]]
if {[file exists $filespd]} {
set fp [open $filespd r]
#read the specific problemtype data file contents
close $fp
}
}
#WarnWinText "LoadGIDProject $filespd"
}
I'm sending you the file of Point load.
When i save the problem type, the file *.spd is a empty
file.
How can i save the information of
[.central.s info conditions PointLoad] ?
Could you give some advice?
Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tkpoint.tcl
Type: application/octet-stream
Size: 39562 bytes
Desc: not available
Url :
http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20060124/279eac8f/attachment.obj