SuperAPI AI Directory

solidworks-engineering-drawing

Design & creation

View repository

Updated 10-16 08:43

About this skill

SolidWorks drawing generation and review

This sub-skill focuses on 2D drawings. It depends on the root skill solidworks-automation to provide the SolidWorks COM session, models, export, and general geometry evidence; it is itself responsible for DrawingSpec v1, drawing workflows, and manufacturing delivery review.

When to invoke

  • Generate a part drawing or assembly drawing.
  • Need GB/T drawing frames, first-angle projection, dimension chains, hole tables, BOM, or title blocks.
  • Check drawing view overlap, dimension text, PDF text, title block intrusion, or delivery evidence.
  • When a sheet metal task needs review of flat pattern evidence.

Default rules

  • standard=GB_T Default uses projection=first_angle。
  • GB/T + third-angle projection will be DrawingSpec blocked by the pre-check.
  • All holes, slots, and interfaces must have specification, quantity, and positioning information.
  • Drawing delivery must export PDF, and associate each COM dimension position one-to-one with the final PDF's vector text boxes; missing PDF, missing parser, incomplete association, or text collision will block or require review.
  • This sub-skill does not implement reinforcement learning, nor does it expose arbitrary Python/VBA execution entry points.

Workflow

  1. Read and validate schemas/drawing_spec.schema.json。
  2. Run the root skill's SolidWorks preflight and capability detection.
  3. Select a drawing frame, create a sheet, and read back the sheet size and projection method.
  4. Create views, dimensions, hole tables, and BOM according to executor capabilities, and read back real entities; DrawingSpec fields must not be silently ignored.
  5. Save .slddrw, export PDF and BMP/PNG.
  6. Run drawing_review.py, generate machine evidence and manual review gating.

Capability boundaries

  • Part and assembly drawings are pilot: cross-version real-machine regression is still ongoing; however, when PDF dimension text boxes, view boundaries, dimension chains, hole tables, and BOM evidence all pass, the tool will return pass, and will not unconditionally degrade due to COM lacking native text boxes.
  • The general MCP generator currently only reliably executes empty-configuration front/top/right three views, explicit and accommodatable scale, model dimension import, annotations, and templated BOM. Isometric, section, detail views, specified ID dimensions, hole callouts/hole tables, title block business fields, and sheet metal-specific options must return before modifying the document DRAWING_SPEC_CAPABILITY_UNSUPPORTED, and are executed by specialized scripts.
  • The reviewer performs structured verification by dimension ID/view/type/value, hole specification/quantity/position, real BOM type/data rows/configuration, and title block field readback; template candidates, arbitrary tables, or fuzzy substrings cannot serve as passing evidence.
  • professionalAnnotations can declare center marks, centerlines, hole callouts, datums, GD&T, surface roughness, and weld symbols. The reviewer only accepts SolidWorks-specific entity readback; ordinary Note text cannot substitute.
  • The general generator already supports centerMarks automatic writing: each item must declare id, standard views, expected total count, and targets(holes/fillets/slots), and pass through GetFirstCenterMark2/GetNext entity readback. SW2026 real-machine confirmation shows that a newly created drawing must be saved once before insertion; in an unsaved state the API may return True but entities are temporarily not readable, and the wrapper will remain failed. Other specialized annotations still remain capability-blocked.
  • The cross-version real-machine matrix uses python tests/solidworks_drawing_version_matrix.py --years 2024 2025 2026The script only launches the registered exact-version ProgID and verifies the actual read-back year; an uninstalled version is recorded as unavailable, and the result of the default ProgID must not be used as a substitute.
  • Sheet metal drawings continue only when reliable flat-pattern evidence exists on the local machine; if evidence is missing, return blocked, and do not claim unattended completion.
  • Full GD&T semantic solving is outside the scope of this version; only check whether the requirements exist and are traceable.

Depends on root skill

Prefer reuse:scripts/sw_connect.py、scripts/sw_session.py、scripts/sw_export.py、 scripts/sw_review.py、scripts/sw_document_data.py and scripts/sw_capability_probe.py。