View Full Version : list_global_info
Lim Chee Beng
10-29-2003, 05:09 PM
Anybody can enlighten me how to extract info programmatically from the ME10 function "list_global_info"?
Is there any similar function or quick solution to extract programmatically all the info strings within a subpart, instead of all parts globally?
Sinan
10-30-2003, 08:23 AM
use 'inq_part'
.. and later go through att. texts with INQ 904 & INQ 905
Best regards
Sinan
Lim Chee Beng
11-03-2003, 10:33 PM
Originally posted by Sinan
use 'inq_part'
.. and later go through att. texts with INQ 904 & INQ 905
Best regards
Sinan
Thanks, Sinan. But I afraid the mentioned method is to extract info from a subpart, but not the info from all elements within the subpart. However, "list_global_info" is to list all the info from elements in the existing drawing. I need something simply list all the info from all the subtree elements.
Sinan
11-03-2003, 11:00 PM
Hello,
in this case try the following.
Lim , I am not sitting in front of ME10 so what you see below I have written "blind" - there may be some syntax errors.
EDIT_PART ...(your subpart)..
{ get all the elements inside this part }
INQ_SELECTED_ELEM SELECT ALL CONFIRM END
{ get first elements info strings }
LET info (INQ 1000)
LOOP
EXIT_IF (info = 'END-OF-LIST')
LET info (INQ 1001)
END_LOOP
{ get info strings of the rest }
LOOP
{ get next element }
INQ_NEXT_ELEM
EXIT_IF ((INQ 14)=0)
{ get its attributes }
LET info (INQ 1000)
LOOP
EXIT_IF (info = 'END-OF-LIST')
LET info (INQ 1001)
END_LOOP
END_LOOP
I hope it solves your problems
Sinan
http://www.solidgenius.com
Wolfgang
11-05-2003, 09:49 AM
Originally posted by Sinan
{ get all the elements inside this part }
INQ_SELECTED_ELEM SELECT ALL CONFIRM END
with respect to Lim's wish
info from all the subtree elements.
INQ_SELECTED_ELEM SELECT SUBTREE ALL CONFIRM END
vBulletin® v3.8.4, Copyright ©2000-2024, Jelsoft Enterprises Ltd.