Skip to content

Use only public NwcIO APIs in the CLI - #254

Merged
mahach666 merged 1 commit into
mainfrom
codex/nwcio-cli-public-json
Nov 18, 2026
Merged

mahach666 merged 1 commit into
mainfrom
codex/nwcio-cli-public-json

Conversation

@mahach666

@mahach666 mahach666 commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Changes

  • Send document JSON to files and stdout through NwcDocument.SaveJson.
  • Format raycast labels in the CLI using the public assembly model index. Keep the existing OBJ group names in the compatibility implementation.
  • Remove the CLI's friend access to the engine and document the boundary.

Verification

  • git diff --check
  • dotnet test NwcIO.slnx -c Release passed on .NET 8 and 10. Each target passed 1,286 engine/CLI and 98 adapter tests. Tests requiring the local Navisworks corpus were skipped. Existing CLI tests cover JSON in files and on stdout, and raycast labels for models with identical source paths.
  • On a local NWC fixture, JSON output to a file and to stdout matched the pre-change CLI byte for byte.

@mahach666
mahach666 merged commit 08b2b1a into main Nov 18, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant