Attached is the macro file that I'm working with the generous assistance from this group.
On the last While/Endw loop it seems to go past the number of named elements that were set in the first While/Endw loop. For example, if I picked 4 elements in the .pm4 file and ran the macro it will name these elements E1,E2,E3 and E4. The last loop test of WHILE(#Count<=#No_Elmt) seems to not stop at element E4 and goes onto E5. This causes and error of unknown identifier in expression 'E5'. I set #Count=1 and #No_Elmt=GRP(0) is set to 4 when I do a Macro, Variables check in the .pm4 file. <<AGIEPOCK.MCL>> Regards, Michael Senack, CNC Programmer Blount Canada Ltd 505 Edinburgh Road North Guelph Ontario N1H 6L4 519 822 6870 X354 FAX 519 822 1450 http://www.blount.com/
AGIEPOCK.MCL
Description: Binary data
