Render every reachable schematic sheet in a .PrjPcb to SVG.
This sample uses the Hydroscope project asset. It demonstrates loading project
metadata, collecting schematic documents in project order, and passing
project-level parameters into AltiumSchDoc.to_svg(...) so title-block
parameter expressions can resolve during rendering.
This is a core schematic SVG rendering example only. It does not apply variant
DNP/alternate-part handling or hierarchical channel expansion. Those workflows
require additional project-level information from AltiumDesign or a downstream
application layer.
- loading an existing
.PrjPcbwithAltiumPrjPcb - using
project.get_reachable_schdoc_paths()instead of hardcoding sheet names - reading
project.parameters - calling
AltiumSchDoc.to_svg(project_parameters=...) - writing one SVG per schematic page
From the package root:
uv run python examples\schdoc_svg\schdoc_svg.pyThis sample reads:
examples/assets/projects/hydroscope/Hydroscope.PrjPcb
The schematic documents are discovered from the project file.
The script writes SVGs under:
examples/schdoc_svg/output/
For the Hydroscope asset, the output contains one SVG per reachable schematic page:
examples/schdoc_svg/output/CPU.svg
examples/schdoc_svg/output/POWER_SUPPLY.svg
examples/schdoc_svg/output/TOP_LEVEL.svg
examples/schdoc_svg/output/US_IF.svg
examples/schdoc_svg/output/svg_manifest.json
The manifest records the source project, source schematic pages, project parameters passed to the renderer, and the generated SVG paths.