[GiDlist] 7.5.3b in Linux

Moderator: GiD Team

Post Reply
Sebastian Callegari Valenzuela

[GiDlist] 7.5.3b in Linux

Post by Sebastian Callegari Valenzuela »

Hi Gid Team

I'm working with the 7.5.3b version on windows and this don't have any
problem, but I downloaded this version for Linux and I followed the steps of
the installation and didn't work, appers an error ('error de segmentación'
'segmentation fault'). So I installed other old version I don't have any
problem.

Kind Regards
Sebastián Callegari V.
IEEA

[GiDlist] Checking ..dat file

Post by IEEA »

Hello,

I wish create a function in my problem that allows the user to check the
..dat file before running the code. The input data would be also edited
in a only readable Tcl window. Obviously there is different ways (easy
or not) to obtain that result, but these from GID are often the easiest,
so...

Studying the NASTRAN problem type I noted the function entitled
WriteCalcFileCheck.
It seems that this function could be useful for my specific need. What
do think about it ? And, could you give more infos about this special
function ?

Thank you in advance.

G.W.R. Geis
User avatar
escolano
Posts: 1961
Joined: Sun Sep 05, 1982 10:51 pm

[GiDlist] Checking ..dat file

Post by escolano »

Read GiD Help about Tcl-Tk exension-Event procedures

It exists a new GiD-Tcl event procedure for this pourpose (download last GiD
beta version to use this event), with this prototype:

proc BeforeWriteCalcFileGIDProject { file } {
...body...
set value ...
return $value
}


Your problemtye can define this procedure BeforeWriteCalcFileGIDProject ,
and it will automatically called by GiD before write the calculation file.
You must return "-cancel-" to abort to write the calculation file (if you
detect some bad parameter for example)

It also exists other similar procedure AfterWriteCalcFileGIDProject to be
called just after write the calculation file (then can show this file)
proc AfterWriteCalcFileGIDProject { file error } {
...body...
set value ...
return $value
}

About how to show the file, you can read the contents of the file in a
variable, named for example msg, and use our WarnWinText procedure to show
it.
Some like this:

proc AfterWriteCalcFileGIDProject { file error } {
set f [open $file r]
set msg [read $f]
close $f
WarnWinText $mgs

set value ""
return $value
}

Regards
Enrique Escolano

----- Original Message -----
From: "IEEA" ieea at club-internet.fr
To: "GIDliste" gidlist at gatxan.cimne.upc.es
Sent: Monday, March 14, 2005 10:33 AM
Subject: [GiDlist] Checking ..dat file


Hello,

I wish create a function in my problem that allows the user to check the
..dat file before running the code. The input data would be also edited
in a only readable Tcl window. Obviously there is different ways (easy
or not) to obtain that result, but these from GID are often the easiest,
so...

Studying the NASTRAN problem type I noted the function entitled
WriteCalcFileCheck.
It seems that this function could be useful for my specific need. What
do think about it ? And, could you give more infos about this special
function ?

Thank you in advance.

G.W.R. Geis

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

ronda

[GiDlist] 7.5.3b in Linux

Post by ronda »

Could you send us which the Linux distribution where you are installing GiD
and if you are trying the dynamic or static release of GiD?

regards,

Jorge.

On Monday 14 March 2005 01:59, Sebastian Callegari Valenzuela wrote:
Hi Gid Team

I'm working with the 7.5.3b version on windows and this don't have any
problem, but I downloaded this version for Linux and I followed the steps
of the installation and didn't work, appers an error ('error de
segmentación' 'segmentation fault'). So I installed other old version I
don't have any problem.

Kind Regards
Sebastián Callegari V.

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

[GiDlist] GID 7.5.5b BUG : materials and conditions name don

Post by IEEA »

Hello,

Please note that in GID 7.5.5b version, the names of assigned materials
don't appear on screen in some cases (!) whenever the "Draw -- colors"
function is called.

G.W.R. Geis
User avatar
escolano
Posts: 1961
Joined: Sun Sep 05, 1982 10:51 pm

[GiDlist] GID 7.5.5b BUG : materials and conditions name don

Post by escolano »

Yes, this is a know bug.
In few days we expect to provide a new beta 7.5.6b including this
correction.

Thanks for your report.

Regards

Enrique Escolano

----- Original Message -----
From: "IEEA" ieea at club-internet.fr
To: "GIDliste" gidlist at gatxan.cimne.upc.es
Sent: Tuesday, March 15, 2005 11:23 AM
Subject: [GiDlist] GID 7.5.5b BUG : materials and conditions name don't
appear


Hello,

Please note that in GID 7.5.5b version, the names of assigned materials
don't appear on screen in some cases (!) whenever the "Draw -- colors"
function is called.

G.W.R. Geis



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

IEEA

[GiDlist] Checking ..dat file

Post by IEEA »

Thank you Enrique for your response,

The event procedures you send are OK in my case.

Could you, furthermore, give me a simple command to destroy directly the error
window (message : error running process) at the end of the
BeforeWriteCalcFileGIDProject procedure.

Thank you again,

G.W.R. Geis

Enrique Escolano a écrit :

Read GiD Help about Tcl-Tk exension-Event procedures

It exists a new GiD-Tcl event procedure for this pourpose (download last GiD
beta version to use this event), with this prototype:

proc BeforeWriteCalcFileGIDProject { file } {
...body...
set value ...
return $value
}

Your problemtye can define this procedure BeforeWriteCalcFileGIDProject ,
and it will automatically called by GiD before write the calculation file.
You must return "-cancel-" to abort to write the calculation file (if you
detect some bad parameter for example)

It also exists other similar procedure AfterWriteCalcFileGIDProject to be
called just after write the calculation file (then can show this file)
proc AfterWriteCalcFileGIDProject { file error } {
...body...
set value ...
return $value
}

About how to show the file, you can read the contents of the file in a
variable, named for example msg, and use our WarnWinText procedure to show
it.
Some like this:

proc AfterWriteCalcFileGIDProject { file error } {
set f [open $file r]
set msg [read $f]
close $f
WarnWinText $mgs

set value ""
return $value
}

Regards
Enrique Escolano

----- Original Message -----
From: "IEEA" ieea at club-internet.fr
To: "GIDliste" gidlist at gatxan.cimne.upc.es
Sent: Monday, March 14, 2005 10:33 AM
Subject: [GiDlist] Checking ..dat file

Hello,

I wish create a function in my problem that allows the user to check the
..dat file before running the code. The input data would be also edited
in a only readable Tcl window. Obviously there is different ways (easy
or not) to obtain that result, but these from GID are often the easiest,
so...

Studying the NASTRAN problem type I noted the function entitled
WriteCalcFileCheck.
It seems that this function could be useful for my specific need. What
do think about it ? And, could you give more infos about this special
function ?

Thank you in advance.

G.W.R. Geis

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


_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist
User avatar
escolano
Posts: 1961
Joined: Sun Sep 05, 1982 10:51 pm

[GiDlist] Checking ..dat file

Post by escolano »

I don't know what's the cause of the related "error running process" message.

Maybe is because my sample has a bug: instead WarnWinText $msg I wrote WarnWinText $mgs
Or maybe you don't have a bat file to be run.

Note: WarnWinText not stop the execution flow (is non modal), you can create your own window for your pourposes, modal if necessary.

Regards

Enrique

----- Original Message -----
From: "IEEA" ieea at club-internet.fr
To: gidlist at gatxan.cimne.upc.edu
Sent: Tuesday, March 15, 2005 1:07 PM
Subject: Re: [GiDlist] Checking ..dat file


Thank you Enrique for your response,

The event procedures you send are OK in my case.

Could you, furthermore, give me a simple command to destroy directly the error
window (message : error running process) at the end of the
BeforeWriteCalcFileGIDProject procedure.

Thank you again,

G.W.R. Geis

Enrique Escolano a écrit :

Read GiD Help about Tcl-Tk exension-Event procedures

It exists a new GiD-Tcl event procedure for this pourpose (download last GiD
beta version to use this event), with this prototype:

proc BeforeWriteCalcFileGIDProject { file } {
...body...
set value ...
return $value
}

Your problemtye can define this procedure BeforeWriteCalcFileGIDProject ,
and it will automatically called by GiD before write the calculation file.
You must return "-cancel-" to abort to write the calculation file (if you
detect some bad parameter for example)

It also exists other similar procedure AfterWriteCalcFileGIDProject to be
called just after write the calculation file (then can show this file)
proc AfterWriteCalcFileGIDProject { file error } {
...body...
set value ...
return $value
}

About how to show the file, you can read the contents of the file in a
variable, named for example msg, and use our WarnWinText procedure to show
it.
Some like this:

proc AfterWriteCalcFileGIDProject { file error } {
set f [open $file r]
set msg [read $f]
close $f
WarnWinText $mgs

set value ""
return $value
}

Regards
Enrique Escolano

----- Original Message -----
From: "IEEA" ieea at club-internet.fr
To: "GIDliste" gidlist at gatxan.cimne.upc.es
Sent: Monday, March 14, 2005 10:33 AM
Subject: [GiDlist] Checking ..dat file

Hello,

I wish create a function in my problem that allows the user to check the
..dat file before running the code. The input data would be also edited
in a only readable Tcl window. Obviously there is different ways (easy
or not) to obtain that result, but these from GID are often the easiest,
so...

Studying the NASTRAN problem type I noted the function entitled
WriteCalcFileCheck.
It seems that this function could be useful for my specific need. What
do think about it ? And, could you give more infos about this special
function ?

Thank you in advance.

G.W.R. Geis

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


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

_______________________________________________
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/20050315/549e1ebc/attachment.htm
IEEA

[GiDlist] Checking ..dat file

Post by IEEA »

Sorry, my message is not really clear :

To check the ..dat file before running, I use the procedure (with the
corrected variable name $msg) you wrote for the
AfterWriteCalcFileGIDProject event procedure and that is OK. Doing that
I am sure that the ..dat file is really good before be ran.

Because I don't want that the ..bat file be executed just after, I
return -cancel- at the end of AfterWriteCalcFileGIDProject. Then the
error message "error running process" appears in a tk_dialogRAM window !

Now, I would like automatically destroy that error window in a event
procedure (BeforeRunCalculation or AfterRunCalculation ?). In a
consquence it will just appears the ..dat file written in the
WarnWinText.

But now, I cannot find the name of the tk_dialogRAM error window to
destroy it.

If you have got a solution to do that, I would be (obviously)
interested.

G.W.R. Geis

P.S. Maybe it is not easy to do. If not, there is no problem because at
the moment I can check my data file thanks to your procedure. My need is
only for comprehensive and friendly users of an user friendly interface
!!

Enrique Escolano a écrit :

I don't know what's the cause of the related "error running process"
message. Maybe is because my sample has a bug: instead WarnWinText
$msg I wrote WarnWinText $mgsOr maybe you don't have a bat file to be
run. Note: WarnWinText not stop the execution flow (is non modal), you
can create your own window for your pourposes, modal if necessary.
Regards Enrique ----- Original Message -----From: "IEEA"
ieea at club-internet.frTo: gidlist at gatxan.cimne.upc.eduSent:
Tuesday, March 15, 2005 1:07 PMSubject: Re: [GiDlist] Checking ..dat
file Thank you Enrique for your response,

The event procedures you send are OK in my case.

Could you, furthermore, give me a simple command to destroy directly
the error
window (message : error running process) at the end of the
BeforeWriteCalcFileGIDProject procedure.

Thank you again,

G.W.R. Geis

Enrique Escolano a écrit :

Read GiD Help about Tcl-Tk exension-Event procedures

It exists a new GiD-Tcl event procedure for this pourpose
(download last GiD
beta version to use this event), with this prototype:

proc BeforeWriteCalcFileGIDProject { file } {
...body...
set value ...
return $value
}

Your problemtye can define this procedure
BeforeWriteCalcFileGIDProject ,
and it will automatically called by GiD before write the
calculation file.
You must return "-cancel-" to abort to write the calculation file
(if you
detect some bad parameter for example)

It also exists other similar procedure
AfterWriteCalcFileGIDProject to be
called just after write the calculation file (then can show this
file)
proc AfterWriteCalcFileGIDProject { file error } {
....body...
set value ...
return $value
}

About how to show the file, you can read the contents of the file
in a
variable, named for example msg, and use our WarnWinText procedure
to show
it.
Some like this:

proc AfterWriteCalcFileGIDProject { file error } {
set f [open $file r]
set msg [read $f]
close $f
WarnWinText $mgs

set value ""
return $value
}

Regards
Enrique Escolano

----- Original Message -----
From: "IEEA" ieea at club-internet.fr
To: "GIDliste" gidlist at gatxan.cimne.upc.es
Sent: Monday, March 14, 2005 10:33 AM
Subject: [GiDlist] Checking ..dat file

Hello,

I wish create a function in my problem that allows the user to
check the
..dat file before running the code. The input data would be also
edited
in a only readable Tcl window. Obviously there is different ways
(easy
or not) to obtain that result, but these from GID are often the
easiest,
so...

Studying the NASTRAN problem type I noted the function entitled
WriteCalcFileCheck.
It seems that this function could be useful for my specific
need. What
do think about it ? And, could you give more infos about this
special
function ?

Thank you in advance.

G.W.R. Geis

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


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

_______________________________________________
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/20050317/8739c768/attachment.htm
Post Reply