Table of Contents

NcCodeCommand Panel

The key model is NcCodeCommand.

Layout

  • Head Line
    • NC Code Label
  • NC Code Editor Area
    • The model is NcText.
    • Multi-line text editor for NC code input
    • Monospace font for better code readability
    • Line numbers display (optional)

Features

  • Direct NC code input without file
  • Syntax highlighting for NC code (optional)
  • Real-time validation (optional)
  • Code statistics (line count, character count)
Tip

The NC Code editor should expand to fill available space in the panel.

Note

Unlike NcFileCommand, this command stores the NC code directly in memory.

Source Code Path

See this page for git repository.

WPF Application Source Code Path

  • Mission/NcCodeCommandPanel

Web Page Application Source Code Path

  • wwwroot/mission/panels/nccode-command-panel.html (Component HTML)
  • wwwroot/mission/panels/nccode-command-panel.css (Component styles)
  • wwwroot/mission/panels/nccode-command-panel.js (JavaScript component)
  • Controller/MissionController.cs (REST API - NcCode command endpoints)