# \[GiDlist\] How to output result in binary format?

**URL:** <https://forum.gidsimulation.com/t/gidlist-how-to-output-result-in-binary-format/1545>\
**Category:** 2002 - 2000\
**Created:** [December 18, 2002, 11:23am UTC](https://forum.gidsimulation.com/t/gidlist-how-to-output-result-in-binary-format/1545 "2002-12-18T11:23:01Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![nzwyc\_at\_163.net](https://forum.gidsimulation.com/letter_avatar_proxy/v4/letter/n/b5ac83/32.png) [@nzwyc\_at\_163.net](https://forum.gidsimulation.com/u/nzwyc_at_163.net)\
**Post date:** [December 18, 2002, 11:23am UTC](https://forum.gidsimulation.com/t/gidlist-how-to-output-result-in-binary-format/1545/1 "2002-12-18T11:23:01Z")

</div>

hi,everyone,  
I often work with GID V6.30b. Now i meet a problem which is the result  
file in ASCII format is very big. If i save it in binary format in  
PostProcess of GID, it will become smaller. I also work with customization  
of GID and run my program in GID, so i want to output the result file with  
my program directly in binary format so that it will be faster from  
PreProcess to PostProcess in GID. Could you tell me how to do it?

thanks very much.

---

<div class="post-metadata">

**Author:** ![Jorge\_Suit\_Perez\_Ron](https://forum.gidsimulation.com/letter_avatar_proxy/v4/letter/j/4bbf92/32.png) [@Jorge\_Suit\_Perez\_Ron](https://forum.gidsimulation.com/u/Jorge_Suit_Perez_Ron)\
**Post date:** [December 18, 2002, 11:39am UTC](https://forum.gidsimulation.com/t/gidlist-how-to-output-result-in-binary-format/1545/2 "2002-12-18T11:39:02Z")

</div>

Dear “nzwyc”, the binary format is not documented. Instead of document  
it we have developed an interface in C and Fortran (not fully tested)  
for writing result both in ASCII & binary. This library will be free and  
will be available from next GiD version 7.2. In order to use it you  
should update to that release.

best regards,

Jorge Suit

[nzwyc at 163.net](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist) wrote:

_hi,everyone,_  
_I often work with GID V6.30b. Now i meet a problem which is the result_  
_file in ASCII format is very big. If i save it in binary format in_  
_PostProcess of GID, it will become smaller. I also work with customization_  
_of GID and run my program in GID, so i want to output the result file with_  
_my program directly in binary format so that it will be faster from_  
_PreProcess to PostProcess in GID. Could you tell me how to do it?_  
_thanks very much._

* * *

_GiDlist mailing list_  
_[GiDlist at gid.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
\_[http://gid.cimne.upc.es/mailman/listinfo/gidlist\_](http://gid.cimne.upc.es/mailman/listinfo/gidlist_)  
  
  
\

---

<div class="post-metadata">

**Author:** ![Stefan\_Bergmann](https://forum.gidsimulation.com/letter_avatar_proxy/v4/letter/s/df705f/32.png) [@Stefan\_Bergmann](https://forum.gidsimulation.com/u/Stefan_Bergmann)\
**Post date:** [December 18, 2002, 12:19pm UTC](https://forum.gidsimulation.com/t/gidlist-how-to-output-result-in-binary-format/1545/3 "2002-12-18T12:19:02Z")

</div>

A binary format for result data would be very helpful. Is it possible to  
predict the approx. date when the interface libraries will be availabe?

Best regards,  
Stefan Bergmann.

Jorge Suit Perez Ronda schrieb:

## _Dear “nzwyc”, the binary format is not documented. Instead of document_ _it we have developed an interface in C and Fortran (not fully tested)_ _for writing result both in ASCII & binary. This library will be free_ _and will be available from next GiD version 7.2. In order to use it_ _you should update to that release._ _best regards,_ _Jorge Suit_ \

Dipl.-Ing. Stefan Bergmann  
TU Berlin - Geotechnical Institute

---

<div class="post-metadata">

**Author:** ![Jorge\_Suit\_Perez\_Ron](https://forum.gidsimulation.com/letter_avatar_proxy/v4/letter/j/4bbf92/32.png) [@Jorge\_Suit\_Perez\_Ron](https://forum.gidsimulation.com/u/Jorge_Suit_Perez_Ron)\
**Post date:** [December 18, 2002, 12:29pm UTC](https://forum.gidsimulation.com/t/gidlist-how-to-output-result-in-binary-format/1545/4 "2002-12-18T12:29:01Z")

</div>

Dear Stefan, the release 7.2 will be available next week. We’ll going to  
annouce it in the gidlist.  
Remember that this binary format can only be read from this version on.

best regards,

Jorge Suit

Stefan Bergmann wrote:

_A binary format for result data would be very helpful. Is it possible_  
_to predict the approx. date when the interface libraries will be_  
_availabe?_  
_Best regards,_  
_Stefan Bergmann._  
_Jorge Suit Perez Ronda schrieb:_  
_Dear “nzwyc”, the binary format is not documented. Instead of_  
_document it we have developed an interface in C and Fortran (not_  
_fully tested) for writing result both in ASCII & binary. This library_  
_will be free and will be available from next GiD version 7.2. In_  
_order to use it you should update to that release._  
_best regards,_  
_Jorge Suit_  
  
  
  
  
_----------------------------------_  
_Dipl.-Ing. Stefan Bergmann_  
_TU Berlin - Geotechnical Institute_  
  
  
\

* * *

_GiDlist mailing list_  
_[GiDlist at gid.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
\_[http://gid.cimne.upc.es/mailman/listinfo/gidlist\_](http://gid.cimne.upc.es/mailman/listinfo/gidlist_)

---

<div class="post-metadata">

**Author:** ![ieea1](https://forum.gidsimulation.com/letter_avatar_proxy/v4/letter/i/6bbea6/32.png) [@ieea1](https://forum.gidsimulation.com/u/ieea1)\
**Post date:** [December 18, 2002, 3:00pm UTC](https://forum.gidsimulation.com/t/gidlist-how-to-output-result-in-binary-format/1545/5 "2002-12-18T15:00:02Z")

</div>

Dear All,

I wish to draw a symbol in the vicinity of a mesh.  
This symbol should be able to be moved with the mouse and be oriented in  
3D-space.  
It must be possible to have information about the new coordinates and  
new orientation of the symbol.

I would like your opinion:

I could define a symbol (\*\*\*.geo) (or a 3 axes trieder).  
I could like write a tcl procedure using canvas that allows to move  
this symbol, in the plane  
perpendicular to the observation plane for example.  
Then I could orient it in its local axes with canvas too.  
But:

Can the symbol size be biggest than that of the moment ?  
Can the symbol be oriented in “real time” ?  
Is it possible to obtain the information about the coordinates of the  
direction of observation vector ?  
Is it a better way to do that

Thank you for your point of view.

G.W.R.Geis

---

<div class="post-metadata">

**Author:** ![ieea1](https://forum.gidsimulation.com/letter_avatar_proxy/v4/letter/i/6bbea6/32.png) [@ieea1](https://forum.gidsimulation.com/u/ieea1)\
**Post date:** [December 18, 2002, 3:46pm UTC](https://forum.gidsimulation.com/t/gidlist-how-to-output-result-in-binary-format/1545/6 "2002-12-18T15:46:02Z")

</div>

Dear All,

Is it possible to create a point in the vicinity of a MESH (the geometry  
doesn’t exist here) and stick the symbol associated to the point  
condition ?

Thank you for your response.

G.W.R.Geis

---

<div class="post-metadata">

**Author:** ![Enrique\_Escolano](https://forum.gidsimulation.com/letter_avatar_proxy/v4/letter/e/ecd19e/32.png) [@Enrique\_Escolano](https://forum.gidsimulation.com/u/Enrique_Escolano)\
**Post date:** [December 18, 2002, 4:21pm UTC](https://forum.gidsimulation.com/t/gidlist-how-to-output-result-in-binary-format/1545/7 "2002-12-18T16:21:02Z")

</div>

It is not possible to create a point in mesh view.  
Only is possible to create a “Dimension”  
(Utilities-Dimension-Create-Vertex) to assign a  
label to a 3D model coordinate. You can modify the dimension label text, but  
not draw a symbol.

Now, the symbols only are drawing associated (in location and orientation)  
to a condition,  
and the size is automatically scaled by GiD, it is not user customizable.

The main window of GiD is not a canvas, is a special widget to draw graphics  
using OpenGL.

It is possible to create with tcl/tk a bitmap in any screen location.

Enrique.

----- Original Message -----  
From: “ieea” [ieea at club-internet.fr](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)  
To: [GiDlist at gatxan.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)  
Sent: Wednesday, December 18, 2002 4:43 PM  
Subject: [GiDlist] Drawing a symbol on a mesh  
  
  
_Dear All,_  
_Is it possible to create a point in the vicinity of a MESH (the geometry_  
_doesn’t exist here) and stick the symbol associated to the point_  
_condition ?_  
_Thank you for your response._  
_G.W.R.Geis_

* * *

_GiDlist mailing list_  
_[GiDlist at gid.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
\_[http://gid.cimne.upc.es/mailman/listinfo/gidlist\_](http://gid.cimne.upc.es/mailman/listinfo/gidlist_)

---

<div class="post-metadata">

**Author:** ![ieea1](https://forum.gidsimulation.com/letter_avatar_proxy/v4/letter/i/6bbea6/32.png) [@ieea1](https://forum.gidsimulation.com/u/ieea1)\
**Post date:** [December 19, 2002, 9:09am UTC](https://forum.gidsimulation.com/t/gidlist-how-to-output-result-in-binary-format/1545/8 "2002-12-19T09:09:01Z")

</div>

Dear All,

Is it possible to obtain the informations about the coordinates of the  
vector  
corresponding to the direction of observation of an object ?

Thank you for your response.

G.W.R.Geis

---

<div class="post-metadata">

**Author:** ![Miguel\_A\_de\_Riera\_Pa](https://forum.gidsimulation.com/letter_avatar_proxy/v4/letter/m/d78d45/32.png) [@Miguel\_A\_de\_Riera\_Pa](https://forum.gidsimulation.com/u/Miguel_A_de_Riera_Pa)\
**Post date:** [December 19, 2002, 11:18am UTC](https://forum.gidsimulation.com/t/gidlist-how-to-output-result-in-binary-format/1545/9 "2002-12-19T11:18:01Z")

</div>

Hi,

what is you idea?  
no in a direct way. but, you can get the view parameters through the  
‘View-View-Save’ menu option which writes an ASCII file the  
real-world-3D-window limits, the rotation vector, the rotation matrix  
and the center of the figure. we can find a way to make it possible and  
usable for future versions, including the drawing of some simple 3D objects  
from tcl.

miguel

ieea wrote:

_Dear All,_  
_Is it possible to obtain the informations about the coordinates of the_  
_vector_  
_corresponding to the direction of observation of an object ?_  
_Thank you for your response._  
_G.W.R.Geis_

* * *

## _GiDlist mailing list_ _[GiDlist at gid.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_ \_[http://gid.cimne.upc.es/mailman/listinfo/gidlist\_](http://gid.cimne.upc.es/mailman/listinfo/gidlist_)

* * *

Miguel A. de Riera Pasenau [miguel at cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)[http://gid.cimne.upc.es](http://gid.cimne.upc.es)

---

<div class="post-metadata">

**Author:** ![ieea1](https://forum.gidsimulation.com/letter_avatar_proxy/v4/letter/i/6bbea6/32.png) [@ieea1](https://forum.gidsimulation.com/u/ieea1)\
**Post date:** [December 19, 2002, 5:03pm UTC](https://forum.gidsimulation.com/t/gidlist-how-to-output-result-in-binary-format/1545/10 "2002-12-19T17:03:01Z")

</div>

Thank you for the response.

I have seen that the m matrix can be useful to obtain the 3D coordinates of the  
observation vector.  
I think this information could be useful to easily find an orientation vector of an  
object especially  
to give the good orientation of a symbol that could be use for a calculation.  
In my problem, I put a symbol on my object (not yet on the mesh!). This symbolizes a  
directive antenna  
I wish to orient.  
If you have an easy calculation to have the vector coordinates from m-matrix without  
I calculate that, I will be happy.

Thanks again for you response.

G.W.R.Geis

P.S. Next contact in january !! Have a good Christmas.  
  
  
  
“Miguel A. de Riera Pasenau” a écrit :

_Hi,_  
_what is you idea?_  
_no in a direct way. but, you can get the view parameters through the_  
_‘View-View-Save’ menu option which writes an ASCII file the_  
_real-world-3D-window limits, the rotation vector, the rotation matrix_  
_and the center of the figure. we can find a way to make it possible and_  
_usable for future versions, including the drawing of some simple 3D objects_  
_from tcl._  
_miguel_  
_ieea wrote:_  
_Dear All,_  
_Is it possible to obtain the informations about the coordinates of the_  
_vector_  
_corresponding to the direction of observation of an object ?_  
_Thank you for your response._  
_G.W.R.Geis_

* * *

_GiDlist mailing list_  
_[GiDlist at gid.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
\_[http://gid.cimne.upc.es/mailman/listinfo/gidlist\_](http://gid.cimne.upc.es/mailman/listinfo/gidlist_)  
_–_  
_--------------------------------------------------------------------------------_  
_Miguel A. de Riera Pasenau [miguel at cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)[http://gid.cimne.upc.es](http://gid.cimne.upc.es)_

* * *

_GiDlist mailing list_  
_[GiDlist at gid.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
\_[http://gid.cimne.upc.es/mailman/listinfo/gidlist\_](http://gid.cimne.upc.es/mailman/listinfo/gidlist_)

---

<div class="post-metadata">

**Author:** ![ieea1](https://forum.gidsimulation.com/letter_avatar_proxy/v4/letter/i/6bbea6/32.png) [@ieea1](https://forum.gidsimulation.com/u/ieea1)\
**Post date:** [December 19, 2002, 5:14pm UTC](https://forum.gidsimulation.com/t/gidlist-how-to-output-result-in-binary-format/1545/11 "2002-12-19T17:14:02Z")

</div>

Dear All,

I wish to write a tcl procedure to assign a condition to a point.

After having created a single point (number 1) I used this command:

.central.s process data conditions assign 1 escape   
close

but it seems to be a wrong command.

Can you help me please.

G.W.R.Geis

---

<div class="post-metadata">

**Author:** ![Aleix\_Valls](https://forum.gidsimulation.com/letter_avatar_proxy/v4/letter/a/e0b2c6/32.png) [@Aleix\_Valls](https://forum.gidsimulation.com/u/Aleix_Valls)\
**Post date:** [December 19, 2002, 6:01pm UTC](https://forum.gidsimulation.com/t/gidlist-how-to-output-result-in-binary-format/1545/12 "2002-12-19T18:01:02Z")

</div>

Hi,

Try to use this command:

.central.s process escape escape escape escape escape Data   
Conditions AssignCond “Name\_of\_the\_condition” “ID\_of\_point”  
escape

Normally, it is a good trick use a sequence of “escape’s” before begin  
with commands (with this escape sequence you bring GiD to the initial  
state).  
A good tool to see how GiD commands have to be written, it is use the  
GiD batch file. More information can be found in GiD help.

Bye,

Aleix

-----Mensaje original-----  
De: [gidlist-admin at gatxan.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)  
[mailto:[gidlist-admin at gatxan.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)] En nombre de ieea  
Enviado el: sábado, 19 de octubre de 2002 17:11  
Para: [GiDlist at gatxan.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)  
Asunto: [GiDlist] Find a tcl process to assign condition to a point

Dear All,

I wish to write a tcl procedure to assign a condition to a point.

After having created a single point (number 1) I used this command:

.central.s process data conditions assign 1 escape   
close

but it seems to be a wrong command.

Can you help me please.

G.W.R.Geis  
  
\

* * *

GiDlist mailing list  
[GiDlist at gid.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)  
[http://gid.cimne.upc.es/mailman/listinfo/gidlist](http://gid.cimne.upc.es/mailman/listinfo/gidlist)

---

<div class="post-metadata">

**Author:** ![Enrique\_Escolano](https://forum.gidsimulation.com/letter_avatar_proxy/v4/letter/e/ecd19e/32.png) [@Enrique\_Escolano](https://forum.gidsimulation.com/u/Enrique_Escolano)\
**Post date:** [December 19, 2002, 6:21pm UTC](https://forum.gidsimulation.com/t/gidlist-how-to-output-result-in-binary-format/1545/13 "2002-12-19T18:21:02Z")

</div>

Before the point or points number it is needed the name of the condition to  
assign, for example Point\_Constraint:  
(and before to assign any condition it is needed to load a problem type with  
this condition defined over points)

For example:  
.central.s process escape escape escape escape data conditions assigncond  
Point\_Constraint 1 escape

About your previous questions: You can create an auxiliary line to define  
your antenna orientation.  
put your line in a “special” layer and ignore this line for the mesh  
generation or another operations.

Enrique

----- Original Message -----  
From: “ieea” [ieea at club-internet.fr](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)  
To: [GiDlist at gatxan.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)  
Sent: Saturday, October 19, 2002 5:11 PM  
Subject: [GiDlist] Find a tcl process to assign condition to a point  
  
  
_Dear All,_  
_I wish to write a tcl procedure to assign a condition to a point._  
_After having created a single point (number 1) I used this command:_  
\_.central.s process data conditions assign 1 escape \_  
_close_  
_but it seems to be a wrong command._  
_Can you help me please._  
_G.W.R.Geis_

* * *

_GiDlist mailing list_  
_[GiDlist at gid.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
\_[http://gid.cimne.upc.es/mailman/listinfo/gidlist\_](http://gid.cimne.upc.es/mailman/listinfo/gidlist_)

---

<div class="post-metadata">

**Author:** ![Ramon\_Rib\_oacute](https://forum.gidsimulation.com/letter_avatar_proxy/v4/letter/r/8797f3/32.png) [@Ramon\_Rib\_oacute](https://forum.gidsimulation.com/u/Ramon_Rib_oacute)\
**Post date:** [December 20, 2002, 2:51pm UTC](https://forum.gidsimulation.com/t/gidlist-how-to-output-result-in-binary-format/1545/14 "2002-12-20T14:51:01Z")

</div>

Hello,

If you want to assign the condition with values different from  
the defaults, you should use something like the following:

.central.s process escape escape escape escape data cond assign   
$\_CndName change $Values $l escape

In this case, this command can be found in DataWindows.tcl  
You can find a lot of information just by investigating the GiD TCL  
scripts.

Regards and happy Christmas to everybody,

–  
Compass Ing. y Sistemas Dr. Ramon Ribó  
[http://www.compassis.com](http://www.compassis.com)[ramsan at compassis.com](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)  
c/ Manuel Girona, 61 bajos tel. +34 93 204 10 82  
08034 Barcelona, Spain fax. +34 93 204 19 09

-----Mensaje original-----  
De: [gidlist-admin at gatxan.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)  
[mailto:[gidlist-admin at gatxan.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)]En nombre de Enrique Escolano  
Enviado el: jueves, 19 de diciembre de 2002 19:24  
Para: [gidlist at gatxan.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)  
Asunto: Re: [GiDlist] Find a tcl process to assign condition to a point  
  
  
Before the point or points number it is needed the name of the condition to  
assign, for example Point\_Constraint:  
(and before to assign any condition it is needed to load a problem type with  
this condition defined over points)

For example:  
.central.s process escape escape escape escape data conditions assigncond  
Point\_Constraint 1 escape

About your previous questions: You can create an auxiliary line to define  
your antenna orientation.  
put your line in a “special” layer and ignore this line for the mesh  
generation or another operations.

Enrique

----- Original Message -----  
From: “ieea” [ieea at club-internet.fr](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)  
To: [GiDlist at gatxan.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)  
Sent: Saturday, October 19, 2002 5:11 PM  
Subject: [GiDlist] Find a tcl process to assign condition to a point  
  
  
_Dear All,_  
_I wish to write a tcl procedure to assign a condition to a point._  
_After having created a single point (number 1) I used this command:_  
\_.central.s process data conditions assign 1 escape \_  
_close_  
_but it seems to be a wrong command._  
_Can you help me please._  
_G.W.R.Geis_

* * *

_GiDlist mailing list_  
_[GiDlist at gid.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
\_[http://gid.cimne.upc.es/mailman/listinfo/gidlist\_](http://gid.cimne.upc.es/mailman/listinfo/gidlist_)

* * *

GiDlist mailing list  
[GiDlist at gid.cimne.upc.es](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)  
[http://gid.cimne.upc.es/mailman/listinfo/gidlist](http://gid.cimne.upc.es/mailman/listinfo/gidlist)
