executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
solidworks-automation用户需要用 Python/C#/VBA 连接 SolidWorks API 自动建模、装配、工程图、仿真等时调用本技能。
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill when the task requires executable SolidWorks automation code or a live COM session for parts, assemblies, drawings, Simulation, Flow Simulation, sheet metal, weldments, molds, or tooling. For design-only decisions or parameterization methodology without implementation, use sw-designer instead.
GetActiveObject("SldWorks.Application"); only fall back to Dispatch when no usable instance exists.sw.ActiveDoc when it matches the task. Create a new document only when explicitly required or no suitable document exists.try...finally and close them by title; do not leave orphan windows or COM references.dir(), get_com_member, or a tiny subprocess before using an uncertain API.F:\codexspace\...; do not copy full projects to the Desktop or C drive.FeatureExtrusion2 for through holes and rings.SelectByID2 has 9 arguments; the Callout argument must be a real COM null variant, typically VARIANT(VT_DISPATCH, None).FeatureExtrusion2 uses 23 arguments on this install.EditRebuild3 may be a property instead of a method. ForceRebuild3(False) is the safer rebuild call.FeatureCut, FeatureCut3, and FeatureCut4 are fragile from Python COM. Use additive geometry, multi-contour sketches, C#, or VBA rather than pretending a None return means success.LoadFile4 may return (doc, status); unwrap it before using the document.Extension.SaveAs needs COM variants for export data and by-ref error/warning values.SelectByRay; verify BOM count and envelope before attempting perfect mates.Read these only when the current task needs them.
references/automation-manual.md — the full 46-section manual. Search it first with rg -n "keyword" references/automation-manual.md, then read the narrow line range. Avoid loading the whole file by default.references/drawing-to-3d-lessons.md — DXF/PDF-to-part rules, secondary-feature checks, volume calibration, and ground-truth STEP comparison.references/materials-forming-mold-lessons.md — stamping edge sizing, die-cast shrink direction, process metadata, moldbase checks, and mold assembly QA.references/assembly-debugging-lessons.md — repeated-instance counting, transformed hole centers, and render-based assembly validation.references/com-dualinterface-quirks.md — COM 双接口怪癖实证手册(2026-10 单机全流程实战沉淀)。当动态 COM 调用报"找不到成员"、拉伸静默返回 None、AddComponent5 静默失败、ComposeTransform 摆位不对、截图视图切不过去时,先读它。配套可运行流水线见 examples/verified/。examples/01_basic_part.pyexamples/02_assembly.pyexamples/03_drawing.pyexamples/04_simulation.py