Editing & simulation
How do I insert a comment or macro call after every tool change in an NC program?
Updated
CIMCO EditRegular expressionsInsert String
Direct answer
Use Insert String under NC Functions / Insert-Remove and switch the match from plain text to a regular expression, or regex. A text match finds one exact string; a regex finds a pattern, such as every tool-change or T-call line regardless of tool number. CIMCO Edit can then insert a comment, macro call, or other required text at the selected position for every match in one pass.
Practical checkpoint
Test the expression on a representative section first, confirm it matches only the intended lines and inserts the text in the correct position, then apply it to a copy of the complete program and review the result.