fix(com): create linear dimensions with AddDimRotated (#3)

dimension_linear always failed with '<unknown>.AddDimLinear' on the COM
backend — pywin32's dynamic dispatch error for a method that does not
exist: the AutoCAD ActiveX API has no AddDimLinear. AddDimRotated takes
the same arguments (XLine1Point, XLine2Point, DimLineLocation,
RotationAngle), so the call site only changes the method name.

Adds a mocked regression test asserting AddDimRotated is called with
the exact point/rotation arguments and AddDimLinear never is.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Umutcan Edizsalan
2026-07-14 00:01:53 +03:00
co-authored by Claude Fable 5
parent d0dfa8cf2d
commit 3a0519724b
3 changed files with 43 additions and 1 deletions
+4
View File
@@ -15,6 +15,10 @@ _Next: closed-loop refiner (critique→repair→re-critique with transaction-sta
matching the project name, so hatchling could not infer which files to ship.
`pyproject.toml` now declares the wheel file selection explicitly
(`server.py`, `config.py`, `security.py`, `backends/`, `engineering/`). (#2)
- **`dimension_linear` on the COM backend** — always crashed with
`<unknown>.AddDimLinear`: the AutoCAD ActiveX API has no `AddDimLinear`
method. Linear dimensions are now created via `AddDimRotated` (identical
argument order), with a mocked regression test. (#3)
## [1.2.0] — 2026-07-07