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

HiNC-2025-webservice (Quasar CLI SPA):

  • wwwroot-src/src/components/mission/NcCodeCommandPanel.vue — monospace <q-input type="textarea"> with 400 ms-debounced save, line / character stats, Trim Blank Lines + Clear actions. Monaco upgrade deferred.
  • wwwroot-src/src/api/mission.ts — typed wrapper over the NcCode-related endpoints on MissionController.cs.
  • Missions/MissionController.cs — REST endpoints for NcText per-property updates.