The “Remove Spaces” function is designed to automatically delete all unnecessary spaces
in the CNC program text. This makes the code more compact, reduces its size,
and simplifies further processing.
How the function works:
Removes all spaces between addresses and values (e.g., G1 X10 Y20 → G1X10Y20).
Removes empty lines that contain no code or comments.
Comments in parentheses or after a semicolon remain unchanged.
When it’s useful:
When exporting a CNC program to equipment that does not support spaces in the code.