CAD Skill
This skill allows an AI assistant to control locally installed CAD applications on Windows.
Supported software currently includes:
- - solidworks
- catia
- creo
- ug (Siemens NX)
The skill enables launching CAD software, opening files with specific applications, checking running status, closing applications, and detecting active CAD windows.
This skill is intended for local workstation automation.
Important Constraints
The assistant must follow these constraints when using this skill:
- 1. Do not scan the entire computer filesystem.
- Do not traverse all directories on disk.
- Do not read the Windows registry.
- Only use paths stored in
config.json. - Only check predefined candidate install paths.
If the executable cannot be located:
- - ask the user to provide the full executable path
- then call
set_app_path to store the path.
Supported Applications
Currently supported CAD software:
Execution
All commands are executed through:
skill_runner.py
Input payload format:
CODEBLOCK0
Supported Actions
launch_app
Launch a CAD application.
Arguments:
openfilein_app
Open a file using a specified CAD application.
Arguments:
- - app
- filepath
- configfile(optional)
- autolaunch(optional)
- waitseconds(optional)
isappruning
Check whether a CAD application is currently running.
Arguments:
- - app
- config_file(optional)
close_app
Close a CAD application.
Arguments:
- - app
- config_file(optional)
- force(optional)
getactivateapp
Detect which CAD application window is currently active.
Arguments:
getrunningapps
Return all currently running supported CAD applications.
Arguments:
detectapppath
Detect an executable path using only predefined paths and saved paths.
Arguments:
- - app
- config_file(optional)
setapppath
Save a user provided executable path into the configuration file.
Arguments:
- - app
- path
- config_file(optional)
Example Usage
Launch SolidWorks:
CODEBLOCK1
open a STEP file in SolidWorks:
CODEBLOCK2
Save a user provided executable path:
CODEBLOCK3
Note
This skill is designed for local CAD workstation automation.
It intentionally avoids heavy filesystem scanning to maintain fast response and predictable behavior.
CAD 技能
该技能允许AI助手控制Windows系统上本地安装的CAD应用程序。
当前支持的软件包括:
- - SolidWorks
- CATIA
- Creo
- UG(Siemens NX)
该技能支持启动CAD软件、使用特定应用程序打开文件、检查运行状态、关闭应用程序以及检测活动的CAD窗口。
该技能适用于本地工作站自动化。
重要约束
助手在使用此技能时必须遵守以下约束:
- 1. 不要扫描整个计算机文件系统。
- 不要遍历磁盘上的所有目录。
- 不要读取Windows注册表。
- 仅使用存储在config.json中的路径。
- 仅检查预定义的候选安装路径。
如果无法定位可执行文件:
- - 请用户提供完整的可执行文件路径
- 然后调用setapppath来存储该路径。
支持的应用程序
当前支持的CAD软件:
执行
所有命令通过以下方式执行:
skill_runner.py
输入负载格式:
json
{
skill: launch_app,
args: {
app: solidworks
}
}
支持的操作
launch_app
启动一个CAD应用程序。
参数:
openfilein_app
使用指定的CAD应用程序打开文件。
参数:
- - app
- filepath
- configfile(可选)
- autolaunch(可选)
- waitseconds(可选)
isapprunning
检查某个CAD应用程序当前是否正在运行。
参数:
close_app
关闭一个CAD应用程序。
参数:
- - app
- config_file(可选)
- force(可选)
getactivateapp
检测当前哪个CAD应用程序窗口处于活动状态。
参数:
getrunningapps
返回所有当前正在运行的受支持CAD应用程序。
参数:
detectapppath
仅使用预定义路径和已保存路径检测可执行文件路径。
参数:
setapppath
将用户提供的可执行文件路径保存到配置文件中。
参数:
使用示例
启动SolidWorks:
json
{
skill: launch_app,
args: {
app: solidworks
}
}
在SolidWorks中打开一个STEP文件:
json
{
skill: openfilein_app,
args: {
app: solidworks,
filepath: D:\\DESKTOP\\solviproject\\moca\\moca.STEP,
auto_launch: true,
wait_seconds: 5
}
}
保存用户提供的可执行文件路径:
json
{
skill: setapppath,
args: {
app: solidworks,
path: E:\\Program Files\\SOLIDWORKS Corp\\SOLIDWORKS\\SLDWORKS.exe
}
}
注意
该技能专为本地CAD工作站自动化而设计。
它有意避免繁重的文件系统扫描,以保持快速响应和可预测的行为。