跳到正文
CY· @AIchanyi · X·· 8 小时前精选AI 评分72

OmniSolidWorks-Skill 发布:Codex 通过 COM API 驱动 SolidWorks 并回读验证

AI 导读

OmniSolidWorks-Skill 是一个面向 Codex 的 agent skill,通过本地 COM API 驱动原生 SolidWorks,围绕 model、assemble、verify 三步完成参数化特征、子装配、工程图与回读验证。

推荐理由

材料把技能的验收口径和测试边界都摊开,读者可据此判断这类 CAD Agent 当前能交付到哪一步。

正文 · 原文

「OmniSolidWorks-Skill: a modelling skill that leaves receipts」

It is not a text-to-CAD toy that hands back a render and calls it a part, but an agent skill for Codex that drives native SolidWorks over the local COM API and then proves what it built; the three verbs are model, assemble, verify.

The capability list runs wide: parametric features with dimension edits and rebuilds, multi-level sub-assemblies with mates and exploded steps, geometry read-back, static interference, engineering drawings and the reopen test; behind it sit Windows x64, Python 3.12+, PowerShell 5.1 and a licensed SolidWorks session opened on a blank document, while the front is one install folder and a checksum to match on the release page.

Its own case carries the argument: a three-station parallel gripper built from a blind test, eight parametric parts becoming three sub-assemblies and eighteen instances, a five-step native exploded view, and a first-angle A2 drawing with section views, associative dimensions, an eight-row BOM and balloons, at zero native solid interference in the folded state.

What separates it from a recording macro is where acceptance lands: volume, centroid and geometry dimensions read back from the part; component references, mates, transforms and interference from the assembly; a parameter change, a rebuild and the rejection of bad input from verification; save, close, reopen, drawing, BOM, checkpoint and SHA-256 from delivery, backed by twenty-four unit tests and 113 checklist validations, with a companion checker, OmniGB Core, auditing dimension chains, repeated spans, sheet boundaries and balloon consistency.

The edges are stated as plainly as the wins: SolidWorks 2014 x64 SP0 (COM 22.0.0) is the tested host, 2024 has no real-machine verification, the 2026 compatibility patch passed only simulation and waits for an outside retest, and native route-line persistence is still experimental, so exploded documentation leans on native steps, balloons and a step table.

Continuous motion gets only AABB coarse screening, never swept-collision or motion simulation, the old sldapiu.dll access violation under 2014 is a known host risk, and the pipe-cleaning robot on the showcase page is a partner's design shown by permission, not V1.0 output; the new door is an agent touching real CAD documents instead of describing them, but the threshold is a licensed seat, a Windows machine, and a release most users are not running yet.

Source: GitHub | Haruhi764/OmniSolidWorks-Skill

github.com/Haruhi764/OmniSoli…

来源:CY · x.com