Skip to content

feat(print): add SVG level plan export via PlanPrinter and rvtio print - #318

Merged
mahach666 merged 2 commits into
mainfrom
feat/svg-plan-export
Nov 26, 2026
Merged

mahach666 merged 2 commits into
mainfrom
feat/svg-plan-export

Conversation

@mahach666

@mahach666 mahach666 commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add SVG export for level plans through PlanPrinter.RenderSvg for SVG text, PlanPrinter.WriteSvg for UTF-8 streams, and rvtio print <file.rvt> <out.svg>.
  • Share model geometry, page layout, and scale calculations between PDF and SVG. Validate paper size and margins before rendering.
  • Write SVG coordinates in millimetres with paper dimensions, plan scale, and level ID in metadata.
  • Keep --level, --scale, and --paper available for SVG. Sheet and view selection remain PDF features.

Verification

  • The full Release test suite passed on .NET 8 and .NET 10. Fixture-dependent tests accounted for 453 skips on each framework.
  • All 38 focused print tests passed on each framework with public RVT fixtures.
  • The native-core build passed. In three public RVT models, PDF rasters and SVG bytes matched the outputs from before the fixes.

Draft #303 also changes the print command and plan renderer. When integrating the draft, preserve its viewport image handling and sheet section marks.

@mahach666
mahach666 merged commit 74ca4f3 into main Nov 26, 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