I have a bunch of comparison points divided up into a number of groups. I have all my groups in a list. I'm not familiar with the syntax of the poylworks macro language though. I've looked through the macro commands help and I cant find what I'm looking for. I dont see any available commands to do a FOR EACH loop. How would I go about looping through each group of comparison points? The end game is changing the name of the first item in each group along with some of the geometric controls.
Here's what I have so far:
Code: Select all
DECLARE numOfGrps DECLARE grpName DECLARE itmName DECLARE i 1 TREEVIEW OBJECT_ELEMENTS SELECT NONE TREEVIEW OBJECT_GROUP COUNT GET ( numOfGrps ) TREEVIEW OBJECT_GROUP NAME ALL GET ( grpName ) WHILE $i <= $numOfGrps ### this is where I want to get the 1st item name of each group to variable $itmName ### MACRO PAUSE ( $grpName[$i] ) # returns group name ++i ENDWHILE