Page 1 of 1

[GiDlist] A question about *.bas!

Posted: Wed May 29, 2002 11:07 am
by Mark Smith
I downloaded the 7.0 beta as I was interested in the templates. I noticed
that in vrml.bas the following commands were used
LayerColorRGB(1) , LayerColorRGB(2) , LayerColorRGB(3)
these will not work with GiD 6.3.0b ( not a problem ) is there an updated
document showing the complete list of bas commands available for each
version of GiD ?
regards
mark

-----Original Message-----
From: Enrique Escolano [mailto:escolano at cimne.upc.es]
Sent: 28 May 2002 20:45
To: gidlist at gatxan.cimne.upc.es
Subject: Re: [GiDlist] A question about *.bas!


Download GiD 7.0-Beta2 (or 6.3.0b if you have a permanent password for GiD
6.x, the version 7.x requires a new password)
This version includes some layer commands inside the *.bas file whitout use
tcl.

*LayerNum: returns the layer's number.
*LayerName: returns the layer's name.
*LayerName , *LayerNum must be inside a loop over layers; you cannot use
this commands in a loop over nodes or elements.
*NodesLayerNum: returns the layer's number of a node. Must be used in a loop
over nodes.
*NodesLayerName: returns the layer's name of a node. Must be used in a loop
over nodes.
*ElemsLayerNum: returns the layer's number of a element. Must be used in a
loop over elems.
*ElemsLayerName: returns the layer's name of a element. Must be used in a
loop over elems.

Example 1:
*set Layer example_layer_1 *elems

*loop elems *OnlyInLayer

No:*ElemsNum Name of Layer:*ElemsLayerName No of Layer :*ElemsLayerNum

*end elems




Example 2:
*loop layers

*set Layer *LayerName *elems

*loop elems *OnlyInLayer

No:*ElemsNum Name of Layer:*ElemsLayerName No of Layer :*ElemsLayerNum

*end elems

*end layers


Example 3: count the number of layers
*set var NumberOfLayers=0

*loop layers

*set var=operation(NumberOfLayers+1)

*end layers



--------------------------------------------------------------------------
Linx Printing Technologies plc
+44 (0)1480302100
http://www.linx.co.uk/
This e-mail may contain privileged/confidential information and may be
read, copied and used only by the intended recipient. If you have received
it in error, please contact the sender by return e-mail or by
telephoning +44 (0)1480 302100.
Please then delete the e-mail and do not disclose its contents to any
person.

Any information in this message that does not relate to the official
business of Linx shall be understood as neither given nor endorsed by Linx.
We reserve the right to monitor all e-mail communications through our
internal and external networks.
--------------------------------------------------------------------------

[GiDlist] A question about *.bas!

Posted: Wed May 29, 2002 6:04 pm
by Enrique Escolano
In principle, the help of each version would have to reflect
the valid syntax of its *.bas commands, inside the section
Customization-Template file.

It is also possible that some order is documented something later, after a
test phase.

Regards
Enrique Escolano

----- Original Message -----
From: "Mark Smith" mark.smith at linx.co.uk
To: gidlist at gatxan.cimne.upc.es
Sent: Wednesday, May 29, 2002 12:07 PM
Subject: RE: [GiDlist] A question about *.bas!


I downloaded the 7.0 beta as I was interested in the templates. I noticed
that in vrml.bas the following commands were used
LayerColorRGB(1) , LayerColorRGB(2) , LayerColorRGB(3)
these will not work with GiD 6.3.0b ( not a problem ) is there an updated
document showing the complete list of bas commands available for each
version of GiD ?
regards
mark