DavidT_macktool
Well-known member
G10L41T20P0C15D1.2S1I0E1.2H4.7262K0.J0Q1450N00000001
G10L41T21P0C19D0.87S1I0E0.875H5.9386K0.J0Q884N00000001
G10L41T22P0C2D0.53S1I0H7.3233K0.159B0J0Q236N00000001A0.
G10L41T23P0C15D0.25S1I0E0.25H7.2087K0.J0Q0N00000001
G10L41T24P0C15D0.75S1I0E0.75H7.4646K0.J0Q5253N00000001
Above is an example of the text I need to use. It comes from a CNC mill and is a text file of tool data. Actual useful data is separated by the alpha characters. After each alpha character is the value needed.
I would like to be able to step through each line and assign a value to a variable based on the numeric value after a specific alpha character.
Example:
T = ToolNumber = 20
C = ToolType = 15
D = ActualDia = 1.2
E = NominalDia = 1.2
H = ToolLength = 4.7262
Any ideas? The length of the numeric values vary.
G10L41T21P0C19D0.87S1I0E0.875H5.9386K0.J0Q884N00000001
G10L41T22P0C2D0.53S1I0H7.3233K0.159B0J0Q236N00000001A0.
G10L41T23P0C15D0.25S1I0E0.25H7.2087K0.J0Q0N00000001
G10L41T24P0C15D0.75S1I0E0.75H7.4646K0.J0Q5253N00000001
Above is an example of the text I need to use. It comes from a CNC mill and is a text file of tool data. Actual useful data is separated by the alpha characters. After each alpha character is the value needed.
I would like to be able to step through each line and assign a value to a variable based on the numeric value after a specific alpha character.
Example:
T = ToolNumber = 20
C = ToolType = 15
D = ActualDia = 1.2
E = NominalDia = 1.2
H = ToolLength = 4.7262
Any ideas? The length of the numeric values vary.