How edwardhehe/batchprintzwcad works
LA批量打印 is a ZWCAD/AutoCAD .NET plugin for discovering drawing frames and producing batch or single-sheet outputs. Its main workflow begins with CAD commands, scans current or multiple drawings, lets users review and configure detected jobs, then plots or splits drawings. Separate capabilities include title-block libraries, settings and aliases, directory-table generation, PDF merging/stamping, and CAD-host integration. The README documents product flows; source excerpts confirm selected command, persistence, plotting, and split relationships. Unexcerpted scanning and UI internals are represented at their listed paths without asserting unverified calls.
Main entry points: BatchPlotCommands.cs Plot commands · BatchPlotForm.xaml.cs Batch plot UI · Plotter/PlotterService.Pipeline.cs AutoCAD plotter · Plotter/PlotterService.Pipeline.cs ZWCAD plotter
Components 21
Discovery and review
- Plot commands
src/Common/Commands/BatchPlotCommands.cs - Frame scanning
src/Common/Services/Scanning/RectangleFrameScanner.cs - Title-block scanning
src/Common/Services/Scanning/TitleBlockScanner.cs - Batch plot UI
src/Common/Views/BatchPlotForm.xaml.cs - Single plot UI
src/Common/Views/SinglePlotForm.xaml.cs
Plotting and outputs
- Paper selection
src/Common/Services/Paper/PaperSizeDetector.cs - AutoCAD plotter
src/AutoCAD/Plotter/PlotterService.Pipeline.cs - ZWCAD plotter
src/ZWCAD/Plotter/PlotterService.Pipeline.cs - PDF operations
src/Common/Services/Plotting/PdfDocumentService.cs - Signature stamping
src/Common/Services/Plotting/SignatureStampService.cs - DWG splitting
src/Common/Services/Plotting/DwgSplit/DwgSplitService.cs - Drawing directory
src/Common/Infrastructure/DirectoryTableGenerator.cs
Libraries and settings
- App settings
src/Common/Models/AppSettingsStore.cs - Frame library
src/Common/Models/TitleBlockLibraryStore.cs - Signature library
src/Common/Models/SignatureLibraryStore.cs - Frame library UI
src/Common/Views/TitleBlockLibraryManagerForm.xaml.cs
CAD integration
- CAD host
- Menu integration
src/Common/Infrastructure/CadMenuInstaller.cs - Auto-load setup
src/AutoCAD/AutoloadManager.cs - Command aliases
src/Common/Infrastructure/CommandAliasManager.cs
Other components
- CAD user
Connections 26
- CAD user → Plot commands: invokes
README.md - Plot commands → Frame scanning: starts scans
src/Common/Commands/BatchPlotCommands.cs - Plot commands → Batch plot UI: opens batch
README.md - Plot commands → Single plot UI: opens single
README.md - Batch plot UI → Frame scanning: requests scan
README.md - Frame scanning → Title-block scanning: uses frame rules
- Batch plot UI → Paper selection: selects paper
README.md - Batch plot UI → AutoCAD plotter: starts plotting
- Batch plot UI → ZWCAD plotter: starts plotting
- AutoCAD plotter → App settings: loads settings
src/AutoCAD/Plotter/PlotterService.Pipeline.cs - AutoCAD plotter → Signature stamping: applies stamps
src/AutoCAD/Plotter/PlotterService.Pipeline.cs - ZWCAD plotter → App settings: loads settings
src/ZWCAD/Plotter/PlotterService.Pipeline.cs - ZWCAD plotter → Signature stamping: applies stamps
src/ZWCAD/Plotter/PlotterService.Pipeline.cs - Batch plot UI → DWG splitting: requests DWG split
README.md - Batch plot UI → PDF operations: merges PDFs
README.md - Batch plot UI → Drawing directory: generates table
README.md - Frame library UI → Frame library: loads and saves
src/Common/Views/TitleBlockLibraryManagerForm.xaml.cs - Plot commands → Frame library: reads definitions
src/Common/Commands/BatchPlotCommands.cs - Signature stamping → Signature library: reads signature data
src/Common/Services/Plotting/SignatureStampService.cs - Plot commands → App settings: loads configuration
src/Common/Commands/BatchPlotCommands.cs - CAD user → Menu integration: uses menu
README.md - Menu integration → Plot commands: exposes commands
README.md - Plot commands → Command aliases: configures aliases
src/Common/Commands/BatchPlotCommands.cs - CAD user → Auto-load setup: installs autoload
README.md - Auto-load setup → CAD host: registers startup
README.md - Plot commands → CAD host: runs in host
README.md