Export Formats
build123d-techdraw provides built-in exporters for dual-theme SVG, fast native vector+raster PDF 1.4, 1:1 DXF, and self-contained interactive 3D HTML5 blueprints.
π¨ Interactive Dual-Theme SVG
SVGs generated by build123d-techdraw include dynamic CSS variables and an embedded client-side theme switcher.
Supported Themes
- Dark Blueprint Mode: Slate blue background (
#0d1929), glowing cyan visible lines (#64B5F6), golden dimension text (#FFE082), and red-orange section hatchings (#FF8A65). Ideal for digital review and dark-mode displays. - Clean White ISO Mode: Crisp white paper background (
#FFFFFF), pure black visible lines (#000000), gray dashed hidden lines (#757575), and standard engineering typography. Ideal for high-contrast printing and regulatory archival.
Users viewing the SVG in any modern browser can toggle between themes simply by clicking the button in the top-right corner.
π Multi-Page Native Vector PDF 1.4 Export
The built-in native PDF 1.4 writer translates drawing sheets directly to compressed PDF vector streamsβrunning 16Γβ30Γ faster than external rasterizer/Cairo pipelinesβand embeds transparent RGBA GPU-shaded <image> layers as native PDF XObjects with soft masks underneath exact vector outlines.
Single Sheet PDF
Multi-Page Drawing Booklet (DrawingBooklet)
from build123d_techdraw import DrawingBooklet, DrawingSheet, SheetSize
booklet = DrawingBooklet(title="PRODUCT DRAWING PACKAGE")
sheet1 = DrawingSheet(sheet_size=SheetSize.A3_LANDSCAPE)
sheet1.set_title_block(title="ASSEMBLY OVERVIEW", sheet_num=1, num_sheets=2)
sheet2 = DrawingSheet(sheet_size=SheetSize.A4_PORTRAIT)
sheet2.set_title_block(title="BASE PLATE DETAIL", sheet_num=2, num_sheets=2)
booklet.add_sheet(sheet1)
booklet.add_sheet(sheet2)
# Export all sheets bundled into a single multi-page PDF
booklet.export_pdf("complete_package.pdf")
π Interactive 3D-in-2D HTML5 Blueprint
Export a single, zero-CDN HTML5 file combining your full dual-theme 2D ISO sheet with a live WebGL2 3D CAD inspector (custom GLSL shaders, synchronized theme switching, live X/Y/Z section-plane cuts with procedural hatching, assembly explode, and BOM linking):
See the Interactive 3D HTML guide for a live embedded demo and full options.
π 1:1 DXF Flat Pattern Export
Export flat 2D profiles directly to DXF for laser cutting, plasma, waterjet, or CNC milling: