hi,everybody
I want to get some infomation of entities when I use TCL/TK in GID. But the selection window is only valid when I invoke the list command.
I want to get some infomation of entiies selected but I do not want to show the list window. what can I do?
______________________________________
Mr. Zhiwei Niu
Num. 1, Xikang Road, Nanjing, China
Num. 280 mailbox,Hohai University
Post Code:210098
TEL:86-25-3786281
QQ:1694440
MSN:nzwyc at sina.com
Email:nzwyc at sina.com
http://nzw.hohai.net
http://nzw.yangao.com
ţ־ΰ
ÄϾ©ºÓº£´óѧ280ÐÅÏä 210098
===================================================================
ÔÚ½ñÌìÏíÊÜÃ÷Ì죬»ÝÆÕÕÐÐÐÍÆ³ö´û¿îÃâÏ¢¹ºPC (http://ad4.sina.com.cn/shc/zhuiyu_hprefresh.html)
[GiDlist] when selection window is valid?
Moderator: GiD Team
[GiDlist] when selection window is valid?
The selection window is available not only for the list command, is also enabled when invoke other commands with multiple entities selection (layers send to, show labels, ..)
You can get information about entities from tcl with a ".central.s info list_entities" tcl command, for example:
.central.s info list_entities, for example, to list the lines 1 to 3, can use:
set out [.central.s info list_entities lines 1:3]
Note: can test easy a tcl command in the lower command line with a -np- prefix, for example, create some lines and write:
-np- WarnWinText [.central.s info list_entities lines 1:3]
The user can select entities with this tcl command:
::GidUtils::PickEntities type selectmode
# It returns the enties identifier numbers (for example 1 3 5:8 represents 1 3 5 6 7 8)
# type can be "Points" "Lines" "Surfaces" "Volumes" "Nodes" or "Elements"
# selectmode can be "single" or "multiple"
for example, test in the command line:
-np- WarnWinText "Selected line number [::GidUtils::PickEntities Lines single]"
Note: This tcl procedure can not be available for old GiD versions.
Regards
Enrique Escolano
----- Original Message -----
From: "Niu Zhiwei" nzwyc at sina.com
To: gidlist at gatxan.cimne.upc.es
Sent: Wednesday, October 01, 2003 11:53 AM
Subject: [GiDlist] when selection window is valid?
hi,everybody
I want to get some infomation of entities when I use TCL/TK in GID. But the selection window is only valid when I invoke the list command.
I want to get some infomation of entiies selected but I do not want to show the list window. what can I do?
______________________________________
Mr. Zhiwei Niu
Num. 1, Xikang Road, Nanjing, China
Num. 280 mailbox,Hohai University
Post Code:210098
TEL:86-25-3786281
QQ:1694440
MSN:nzwyc at sina.com
Email:nzwyc at sina.com
http://nzw.hohai.net
http://nzw.yangao.com
ţ־ΰ
ÄϾ©ºÓº£´óѧ280ÐÅÏä 210098
===================================================================
ÔÚ½ñÌìÏíÊÜÃ÷Ì죬»ÝÆÕÕÐÐÐÍÆ³ö´û¿îÃâÏ¢¹ºPC (http://ad4.sina.com.cn/shc/zhuiyu_hprefresh.html)
_______________________________________________
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/20031001/e52dae7d/attachment.htm
You can get information about entities from tcl with a ".central.s info list_entities" tcl command, for example:
.central.s info list_entities, for example, to list the lines 1 to 3, can use:
set out [.central.s info list_entities lines 1:3]
Note: can test easy a tcl command in the lower command line with a -np- prefix, for example, create some lines and write:
-np- WarnWinText [.central.s info list_entities lines 1:3]
The user can select entities with this tcl command:
::GidUtils::PickEntities type selectmode
# It returns the enties identifier numbers (for example 1 3 5:8 represents 1 3 5 6 7 8)
# type can be "Points" "Lines" "Surfaces" "Volumes" "Nodes" or "Elements"
# selectmode can be "single" or "multiple"
for example, test in the command line:
-np- WarnWinText "Selected line number [::GidUtils::PickEntities Lines single]"
Note: This tcl procedure can not be available for old GiD versions.
Regards
Enrique Escolano
----- Original Message -----
From: "Niu Zhiwei" nzwyc at sina.com
To: gidlist at gatxan.cimne.upc.es
Sent: Wednesday, October 01, 2003 11:53 AM
Subject: [GiDlist] when selection window is valid?
hi,everybody
I want to get some infomation of entities when I use TCL/TK in GID. But the selection window is only valid when I invoke the list command.
I want to get some infomation of entiies selected but I do not want to show the list window. what can I do?
______________________________________
Mr. Zhiwei Niu
Num. 1, Xikang Road, Nanjing, China
Num. 280 mailbox,Hohai University
Post Code:210098
TEL:86-25-3786281
QQ:1694440
MSN:nzwyc at sina.com
Email:nzwyc at sina.com
http://nzw.hohai.net
http://nzw.yangao.com
ţ־ΰ
ÄϾ©ºÓº£´óѧ280ÐÅÏä 210098
===================================================================
ÔÚ½ñÌìÏíÊÜÃ÷Ì죬»ÝÆÕÕÐÐÐÍÆ³ö´û¿îÃâÏ¢¹ºPC (http://ad4.sina.com.cn/shc/zhuiyu_hprefresh.html)
_______________________________________________
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/20031001/e52dae7d/attachment.htm