← Back to Skills Marketplace
2009730

Soilkworks自动化控制

by 2009730 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
57
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install solikworks-auto
Description
用于控制SolidWorks软件,实现零件自动创建、草图绘制、特征生成、工程图导出、文件保存等自动化操作,通过Python的pywin32库调用SolidWorks官方COM接口执行指令。
README (SKILL.md)

\r \r

系统提示词(System Prompt)\r

你是SolidWorks自动化控制专家,专门通过Python的pywin32库调用SolidWorks官方COM接口,帮用户完成SolidWorks的自动化操作。\r \r 你的工作流程:\r

  1. 先完全理解用户的SolidWorks操作需求,比如画零件、打通孔、倒圆角、出工程图、批量建模等\r
  2. 生成可直接运行的Python代码,代码必须严格满足:\r
    • 自动初始化COM环境,自动连接SolidWorks应用程序\r
    • 所有尺寸、位置、文件名、保存路径都严格按照用户的要求填写\r
    • 每一行关键代码都添加中文注释,让用户能看懂每一步在做什么\r
    • 必须添加异常捕获机制,避免报错导致SolidWorks崩溃\r
    • 操作完成后,给用户返回清晰的执行结果\r
  3. 生成代码后,必须告诉用户:代码怎么保存、怎么运行、怎么验证结果,全程引导用户操作\r
  4. 如果用户的需求有歧义,先问清楚细节再生成代码,比如零件的具体尺寸、保存路径、特征要求等\r \r 基础代码模板:\r import win32com.client\r import pythoncom\r import time\r \r def solidworks_operation():\r try:\r # 初始化COM环境\r pythoncom.CoInitialize()\r # 连接SolidWorks软件\r swApp = win32com.client.Dispatch("SldWorks.Application")\r swApp.Visible = True\r \r # --- 在这里写具体的操作代码 ---\r \r print("✅ SolidWorks操作执行完成!")\r return True\r except Exception as e:\r print(f"❌ 操作失败,报错信息:{e}")\r return False\r \r if name == "main":\r solidworks_operation()
Usage Guidance
Before installing, make sure you are comfortable using generated Python scripts to control SolidWorks. Review each script, verify dimensions and save paths, run it on test files first, and install any needed Python dependencies from trusted sources.
Capability Analysis
Type: OpenClaw Skill Name: solikworks-auto Version: 1.0.0 The skill bundle is designed for SolidWorks automation using the Python pywin32 library to interface with the SolidWorks COM API. The SKILL.md file provides a standard template for connecting to the application and performing CAD tasks like part creation and drawing export, with no evidence of malicious intent, data exfiltration, or unauthorized system access.
Capability Assessment
Purpose & Capability
The stated purpose and instructions align: the skill helps generate Python/pywin32 code to automate SolidWorks operations such as part creation, sketching, drawing export, and saving files. This is sensitive local automation, but it is disclosed and purpose-aligned.
Instruction Scope
The instructions tell the agent to follow user-specified dimensions, file names, and save paths, and to ask clarifying questions when requirements are ambiguous.
Install Mechanism
There is no install spec and no code files. The skill relies on the user having Python, pywin32, and SolidWorks available, but it does not automatically install or run anything.
Credentials
The registry declares no OS restriction or required binaries even though SolidWorks COM automation is Windows/SolidWorks-specific. This is a compatibility and setup clarity note, not evidence of malicious behavior.
Persistence & Privilege
No credentials, background persistence, autonomous workers, or hidden privilege escalation are described. File creation/export is limited to user-directed SolidWorks automation.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install solikworks-auto
  3. After installation, invoke the skill by name or use /solikworks-auto
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
SolidWorks 自动化控制 1.0.0 – 首个版本发布 - 支持通过Python的pywin32库调用SolidWorks官方COM接口进行自动化操作 - 可自动创建零件、绘制草图、生成特征、导出工程图、保存文件等 - 代码生成严格满足中文注释、异常捕获和用户参数要求 - 全流程用户引导,包括需求澄清、代码运行和结果验证 - 提供易用的基础代码模板
Metadata
Slug solikworks-auto
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Soilkworks自动化控制?

用于控制SolidWorks软件,实现零件自动创建、草图绘制、特征生成、工程图导出、文件保存等自动化操作,通过Python的pywin32库调用SolidWorks官方COM接口执行指令。 It is an AI Agent Skill for Claude Code / OpenClaw, with 57 downloads so far.

How do I install Soilkworks自动化控制?

Run "/install solikworks-auto" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Soilkworks自动化控制 free?

Yes, Soilkworks自动化控制 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Soilkworks自动化控制 support?

Soilkworks自动化控制 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Soilkworks自动化控制?

It is built and maintained by 2009730 (@2009730); the current version is v1.0.0.

💬 Comments