Repository navigation
swforge v0.9.0 — batch drawings + capability probe
swforge v0.9.0
Two new commands
*\swforge batch * — a folder of parts becomes a stack of GB-framed drawings.
\
[1/5] ✓ 垫块.SLDPRT 尺寸 6(总尺寸 4) +PDF 3.0s
[2/5] ✓ 支架.SLDPRT 尺寸 24(总尺寸 6) +PDF 3.4s
[3/5] ✓ 法兰.SLDPRT 尺寸 6(总尺寸 6) +PDF 3.1s
[4/5] ✓ 轴套.SLDPRT 尺寸 6(总尺寸 6) +PDF 3.1s
[5/5] ✓ 连接板.SLDPRT 尺寸 6(总尺寸 4) +PDF 3.1s
合计 5 个模型 成功 5 失败 0 跳过 0 PDF 5
耗时 15.7 秒
\\
*\swforge capabilities --api* — reflects over the installed Interop library and tells
you in 0.43 s whether your SolidWorks can run this.
\
程序集 33.5.0.53
可用率 28/28
全部可用 —— 本机 SolidWorks 支持 swforge 的完整功能
\\
Also in this release
- Overall dimensions now work on revolved parts (flange 120/60, bushing 40/24).
Vertices → edge endpoints → single-entity dimensions, because a cylinder's drawing
view has no vertices and its edges are closed curves. - CI on Python 3.10–3.13: 106 offline tests, package build, sdist content check,
and a guard that fails if a test touches SolidWorks without the \sw\ marker. - README gained a "Not yet" section and a three-layer verification boundary table.
Fixed
- \produce()\ returned \err=1\ when the target drawing already existed (previous
drawing still open, file locked) - \�dd_dimensions(overall=True)\ referenced an undefined variable
- sdist was missing \docs/\ and \demo/\
- batch failed from the 5th part on after hitting SolidWorks' 8-document cap
Numbers
| v0.8.0 | v0.9.0 | |
|---|---|---|
| Tests | 124 | 138 (106 offline + 32 live) |
| Modules | 14 | 16 |
| CLI commands | 11 | 13 |
| sdist files | 41 | 65 |
Honest boundary
Verified on SolidWorks 2025 SP5.0 only. 2019–2024 untested — the --api\ probe tells
you what your machine supports, but a method existing is not the same as its behaviour
matching. CI has no SolidWorks; there is no remote CAD evidence.
Full changelog: CHANGELOG.md