record_drawing_spec
Records a structured part specification from a drawing source to enable deterministic feature plan compilation and execution. Accepts archetype, dimensions, features, and internal features.
Instructions
Record a structured DrawingSpec (LEGACY/dormant spine — see docs/AUTOMATION_LANE.md).
Advisory only: does NOT mutate SolidWorks. Pins a structured part spec (the
LLM's own reading, from any source) so compile_feature_plan_from_drawing_spec
→ run_feature_plan can build it deterministically. Generating a part from a
drawing is a legacy path, not the product focus (automation + reuse).
Args:
source: Dict with pdf_path, page_number, crop_pdf_pts, render_path, note.
interpretation: One-sentence part interpretation.
archetype: One of axisymmetric_revolved, extruded_closed_profile,
plate_hole_pattern, custom.
dimensions: List of {name, value, units, status, source, tolerance,
confidence, note}. status is grounded/derived/assumed/missing.
features: List of {kind, label, tool, params, source_dimensions,
confidence, note}. If tool is set, compile_feature_plan will use
it directly; otherwise it emits archetype defaults.
internal_features: List of {type, diameter_mm, radius_mm, depth_mm, axis,
position_mm, status, note} — the dashed-line bores/grooves/threads
to model. type is through_hole/blind_hole/counterbore/countersink/
groove/thread/radius_cut. radius_cut (a swept-arc / scooped cut) uses
radius_mm instead of diameter_mm. verify_build_report reconciles each
against the built tree to catch silently-dropped or wrong-sized features.
views: Optional list of source-view notes/crops.
assumptions: Assumptions explicitly chosen by the LLM/user.
missing_dimensions: Required dimensions not visible in the source.
confidence: Global confidence 0..10.
notes: Free-form audit notes.
Returns the stored spec, warnings, expected_size_mm when inferable, and a short build recommendation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| views | No | ||
| source | Yes | ||
| features | No | ||
| archetype | Yes | ||
| confidence | No | ||
| dimensions | No | ||
| assumptions | No | ||
| interpretation | Yes | ||
| internal_features | No | ||
| missing_dimensions | No |