About the NCPlayer Service:
File Menu
Edit Menu
View Menu
Formatting Menu
Tools Menu
Machine Configuration Menu
Collaboration

Removing Leading and Trailing Spaces


This feature is designed to automatically remove unnecessary spaces located at the beginning and/or end of each G-code line. This helps improve code cleanliness, make it easier to read, and ensure correct operation of the NCPlayer parser.

NCPlayer

Purpose

  • Optimize G-code before simulation.
  • Increase parsing accuracy and command recognition.
  • Remove accidental spaces that may appear during code editing or copying.

How to Use

  1. Open the Format menu.
  2. Select the Remove Leading + Trailing Spaces option.
  3. The changes will be applied to all lines of the current program.

Example

Before:   "   G01 X50 Y25   "
After:    "G01 X50 Y25"
Warning: If your G-code comments intentionally use spaces at the beginning or end of a line for visual formatting, this feature will remove them. Make sure the removal does not affect the readability or intended formatting of comments.
CNCPassport © MEBLEOS © 2026 · Ver 1.0 · Terms & Conditions | Privacy Policy | Cookie Policy | Refund Policy Legal information | Privacy Policy