solidworks-engineering-drawing

Generate GB/T engineering drawings with structured dimensions, holes, and PDF evidence verification.

2.5k|223|Updated Mar 17, 2026
Ready to run
npx skills add https://github.com/wzyn20051216/solidworks-automation-skill --skill solidworks-engineering-drawing-wzyn20051216
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: solidworks-engineering-drawing
Source: https://github.com/wzyn20051216/solidworks-automation-skill/tree/main/subskills/solidworks-engineering-drawing
Command: npx skills add https://github.com/wzyn20051216/solidworks-automation-skill --skill solidworks-engineering-drawing-wzyn20051216

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jsonschema, pymupdf, win32com, and includes scripts (resource) and references (resource) and schemas (resource) components.

What problem does it solve? Manual engineering drawing creation in SolidWorks is time-consuming and error-prone, especially when validating dimensions, hole specifications, and PDF compliance. This Skill automates drawing generation with comprehensive verification, reducing manual review cycles and ensuring manufacturing-ready deliverables. ## Core Features & Use Cases - Automated Drawing Generation: Create GB/T first-angle or ISO engineering drawings with views, dimensions, and BOM from DrawingSpec schema. - Structured Validation: Verify required dimensions, hole locations, professional annotations (datum tags, GD&T, center marks) against structured evidence. - PDF Evidence Matching: Correlate COM dimension positions with PDF vector text to confirm delivery compliance. - Use Case: Generate a part drawing with 10 specific dimensions and 4 threaded holes; the Skill automatically creates the drawing, exports PDF/BMP, and returns a detailed review report confirming each dimension and hole location matches specification. ## Quick Start Provide a DrawingSpec JSON defining your source model, paper size, views, required dimensions, and hole locations; the Skill will create the native SLDDRW file, generate PDF and BMP previews, and return structured evidence of what was created.

Frequently Asked Questions about solidworks-engineering-drawing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a SolidWorks engineering drawing with specific dimensions from code?▼

Define a DrawingSpec JSON with your model path, paper size, views, and required dimensions including their view, kind, and expected value. Pass this to the drawing workflow, which creates the SLDDRW file, inserts dimensions, and returns structured evidence of placement.

What is DrawingSpec and how does it define an engineering drawing?▼

DrawingSpec is a JSON schema (v1.0) that declaratively specifies drawing content: source model, GB/T or ISO standard, projection angle, views, required dimensions with IDs and values, hole requirements with locations, BOM specifications, and delivery outputs. It acts as both specification and validation contract.

Can this Skill verify that dimensions were actually placed in the PDF?▼

Yes. The Skill extracts PDF vector text using PyMuPDF, correlates each COM dimension position with PDF text spans by page and bounding box, and reports matched or unmatched dimensions. Mismatches or text collisions are flagged for manual review.

Does this Skill support GD&T (geometric dimensioning and tolerancing)?▼

Yes, for SW2026 native GD&T on single parts. You can declare datum tags and geometric tolerances with characteristic, tolerance value, datum references, and material conditions. Complex GD&T like projected zones or composite frames require DrawingSpec options. Assembly GD&T and free-text GD&T are not supported and will be blocked.

What happens if a hole requirement doesn't match the model?▼

The Skill compares each hole requirement specification and location against measured hole groups from the model evidence. If thread type, diameter, or position (tolerance ±0.1 mm) differs, the hole is flagged as unmatched and the drawing result enters review_required or fail status.

Why does my drawing export fail even though the SLDDRW was created?▼

Export failures typically occur when: PDF export requires PyMuPDF (pymupdf) not installed; the drawing was not saved before export; or the template file is missing or not a valid SLDDRT. Check dependencies and ensure the drawing was persisted to disk after creation.