N1: COM hatch non-associative (AddHatch associativity=False) N2: ezdxf refuses DWG saves with clear error; server.py derives fmt from extension R19: dimension_aligned dist→distance; dimension_angular correct add_angular_dim_2l args (base/line1/line2/location) R9: polar array 360° no-duplicate (divisor=n when fill_angle%360<ε) R13: entity_offset side_x/side_y honored in ezdxf via cross-product (LINE) and distance-to-center (CIRCLE) R18: drawing_new bootstrap failure surfaces status="degraded" instead of swallowing silently Dead code: engineering/section.py, gear.generate_tooth_profile, CommandResult, _ACI_NAMES, set_layer_active, ensure_linetypes, ComBackend._batch_mode instance attr, engineering/__init__ build-seam comment Ruff: 38 auto-fixed + 5 manual → codebase is now ruff-clean; CI lint is now blocking 184 tests pass.
67 lines
1.5 KiB
Python
67 lines
1.5 KiB
Python
"""Deterministic engineering CAD layer for AutoCAD MCP Pro."""
|
|
|
|
from .gear import (
|
|
draw_gear_section_aa,
|
|
draw_helical_gear_front_view,
|
|
draw_spur_gear_front_view,
|
|
generate_full_gear_outline,
|
|
generate_involute_flank,
|
|
involute_xy,
|
|
)
|
|
from .keyway import (
|
|
DIN6885_TABLE,
|
|
draw_keyed_bore,
|
|
draw_keyway_section,
|
|
keyway_dimensions,
|
|
)
|
|
from .layers import (
|
|
ENGINEERING_LAYERS,
|
|
STANDARD_LINETYPES,
|
|
ensure_engineering_layers,
|
|
ensure_standard_linetypes,
|
|
)
|
|
from .plan_spec import (
|
|
ALL_CRITIQUE_FOCUSES,
|
|
ISO_128_LINEWEIGHTS_MM,
|
|
CritiqueFocus,
|
|
DimStyle,
|
|
Issue,
|
|
LayerSetId,
|
|
PlanSpec,
|
|
SheetSize,
|
|
SnapType,
|
|
)
|
|
from .titleblock import TitleBlockMetadata, apply_iso_a3_titleblock
|
|
from .validator import DrawingValidator, ValidationFinding, ValidationResult
|
|
|
|
__all__ = [
|
|
"draw_helical_gear_front_view",
|
|
"draw_spur_gear_front_view",
|
|
"draw_gear_section_aa",
|
|
"generate_full_gear_outline",
|
|
"generate_involute_flank",
|
|
"involute_xy",
|
|
"draw_keyed_bore",
|
|
"draw_keyway_section",
|
|
"keyway_dimensions",
|
|
"DIN6885_TABLE",
|
|
"ENGINEERING_LAYERS",
|
|
"STANDARD_LINETYPES",
|
|
"ensure_engineering_layers",
|
|
"ensure_standard_linetypes",
|
|
"apply_iso_a3_titleblock",
|
|
"TitleBlockMetadata",
|
|
"DrawingValidator",
|
|
"ValidationResult",
|
|
"ValidationFinding",
|
|
"PlanSpec",
|
|
"Issue",
|
|
"CritiqueFocus",
|
|
"SheetSize",
|
|
"LayerSetId",
|
|
"DimStyle",
|
|
"SnapType",
|
|
"ALL_CRITIQUE_FOCUSES",
|
|
"ISO_128_LINEWEIGHTS_MM",
|
|
]
|