@boopathi.sivakumar That did work, Thank you.
Let me know if you can think of a simple solution for the following two things:
1. Can we revert to the tools being in numerical order? (instead of in order of use) Im ok with either the tool number or the offset number used to index the list, ie T0101, T0111, T0202, T0222, or T0101, T0202, T0111, T0222
2. If a tool is called twice, it is duplicated in the list (see T1313, where it does a deburring pass after the threading tool)
Here is an example I just posted:
(T0101 NR=0.0156 - ZMIN=0. - GENERAL TURNING)
(T1313 NR=0.0156 - ZMIN=-0.6656 - GENERAL TURNING)
(T0505 NR=0. - ZMIN=0.2069 - THREAD TURNING)
(T1313 NR=0.0156 - ZMIN=-0.6656 - GENERAL TURNING)
(T0303 D=0.5 CR=0. - ZMIN=-0.248 - FLAT END MILL)
(T0606 D=0.1015 CR=0. TAPER=118DEG - ZMIN=-0.4519 - DRILL)
(T0707 D=0.125 CR=0. TAPER=90DEG - ZMIN=-0.29 - SPOT DRILL)
(T0808 D=0.112 CR=0. - ZMIN=-0.4114 - RIGHT HAND TAP)
(T0909 D=0.1875 CR=0. - ZMIN=-0.334 - FLAT END MILL)
(T0707 D=0.125 CR=0. TAPER=90DEG - ZMIN=-0.29 - SPOT DRILL)
(T1111 NR=0.0156 - ZMIN=-0.25 - BORING TURNING)
(T1212 NR=0.008 - ZMIN=-0.7557 - GROOVE TURNING)
((This is the sub spindle tooling))
(T0232 NR=0.0156 - ZMIN=0. - GENERAL TURNING)
(T0737 D=0.25 CR=0. - ZMIN=-0.29 - FLAT END MILL)
(T1646 D=0.5 CR=0. TAPER=45DEG - ZMIN=-0.202 - CHAMFER MILL)
(T0434 D=0.395 CR=0. - ZMIN=-0.226 - RIGHT HAND TAP)