How to determine the end of a block of text
I am working with blocks of text in a Word Document that start with
;PATH:2 - 5AX TRIM
;VIEW:9 - ORIENT - ANGLES: 0,90
;TOOL:3 - DIAM:.25 CRAD:0 REF GL:0
;DESC: 0.2500 DIA - 2 FLUTE - ENDMILL
;MATL: HSS
M06 T3.3
(UIO,Z(-1*L370))
(TCP,5)
X-2.1181 Y-1.3104 A0. C283.627 S18000 M03
A22.314 C233.775
Z1.749
G01 Z.749 F50.
Then has multiple lines of some permutation of:
X-1.8601 Y-1.5577 Z-.1887 A22.244 C233.883
Then ends with
<Random Text> F50.
G00 Z4.
There are multiple blocks of text in this format. I want to do DO-WHILE for each iteration of blocks in this format. I'm not sure how to set the DO-WHILE parameters to take advantage of these consistent markers before and/or after these blocks of text.
Can anyone help?
|