hello!
I am a Chinese student and often use GID. Now I use ver 6.1.2. I want to write a problemtype which can write a file to my calculating program,but I must use the layers. But I can't find the command about output how many layers,so I write a program with TCL which can output the number of layers. But now I meet a question: the number of layer outputting by my TCL program is a string,when I use this number in loop in *.bas,it do not work correctly.
Could you tell me who to tranform the string into a integer number?
My best wish to your!
yours,Niu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020528/d034007c/attachment.htm
[GiDlist] A question about *.bas!
Moderator: GiD Team
[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
----- Original Message -----
From: 牛志伟
To: gidlist at gatxan.cimne.upc.es
Sent: Tuesday, May 28, 2002 7:47 PM
Subject: [GiDlist] A question about *.bas!
hello!
I am a Chinese student and often use GID. Now I use ver 6.1.2. I want to write a problemtype which can write a file to my calculating program,but I must use the layers. But I can't find the command about output how many layers,so I write a program with TCL which can output the number of layers. But now I meet a question: the number of layer outputting by my TCL program is a string,when I use this number in loop in *.bas,it do not work correctly.
Could you tell me who to tranform the string into a integer number?
My best wish to your!
yours,Niu
热点推荐: “零距离接触32名世界杯宝贝” [跟踪报道] [图片报道] [宝贝印象] [初赛实录]
163.net 收费邮箱
白金版
(100 M ,可发10M附件) 黄金版
(60 M ,可发10M附件) 精英型
(25M ,可发8M附件) 普及型
(10M ,可发5M附件)
300元/年
(送1200条邮件短信)
180元/年
(送720条邮件短信) 120元/年 50元/年
更快更稳定 | 内置瑞星杀毒引擎 | 垃圾邮件过滤 | 四大新功能 | 支持手机收发邮件new!
摩托罗拉、 西门子、诺基亚铃声图片放送 TOM短讯 更多精彩
恋爱大过天(twins)
G For Girl(梁咏琪) 流星花园
迷魂记(王菲) 恋恋风尘
真心英雄 六字箴言
情有独钟 悲伤止步(苏永康)
眼神骗不过(黎明) 唯一(王力宏)
流星雨(F4) 征服(那英)
天空(王菲)
TOM已支持中国移动神州行用户发送短信
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020528/b7505ff5/attachment.htm
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
----- Original Message -----
From: 牛志伟
To: gidlist at gatxan.cimne.upc.es
Sent: Tuesday, May 28, 2002 7:47 PM
Subject: [GiDlist] A question about *.bas!
hello!
I am a Chinese student and often use GID. Now I use ver 6.1.2. I want to write a problemtype which can write a file to my calculating program,but I must use the layers. But I can't find the command about output how many layers,so I write a program with TCL which can output the number of layers. But now I meet a question: the number of layer outputting by my TCL program is a string,when I use this number in loop in *.bas,it do not work correctly.
Could you tell me who to tranform the string into a integer number?
My best wish to your!
yours,Niu
热点推荐: “零距离接触32名世界杯宝贝” [跟踪报道] [图片报道] [宝贝印象] [初赛实录]
163.net 收费邮箱
白金版
(100 M ,可发10M附件) 黄金版
(60 M ,可发10M附件) 精英型
(25M ,可发8M附件) 普及型
(10M ,可发5M附件)
300元/年
(送1200条邮件短信)
180元/年
(送720条邮件短信) 120元/年 50元/年
更快更稳定 | 内置瑞星杀毒引擎 | 垃圾邮件过滤 | 四大新功能 | 支持手机收发邮件new!
摩托罗拉、 西门子、诺基亚铃声图片放送 TOM短讯 更多精彩
恋爱大过天(twins)
G For Girl(梁咏琪) 流星花园
迷魂记(王菲) 恋恋风尘
真心英雄 六字箴言
情有独钟 悲伤止步(苏永康)
眼神骗不过(黎明) 唯一(王力宏)
流星雨(F4) 征服(那英)
天空(王菲)
TOM已支持中国移动神州行用户发送短信
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020528/b7505ff5/attachment.htm