Swpilotcli check dangling dims

From arthurle3210/SwpilotCLI · View interactive version

Swpilotcli check dangling dims is an AI agent skill from the GitHub repository arthurle3210/SwpilotCLI. Scan all dimensions in the active SolidWorks drawing and report which ones are dangling (unattached). Lists every dimension with its type, value, and name, marking dangling ones with [!]. Outputs a summary count at the end. Use before running a repair tool, for QC checks before release, or whenever

How to use this skill

Skill file

SolidWorks Check Dangling Dimensions

Scan every dimension in the active drawing and report dangling status.

Prerequisites

What this Skill does

  1. Iterates all sheets and views in the active drawing
  2. For each DisplayDimension annotation, checks IAnnotation.IsDangling()
  3. Prints every dimension with view name, type, value, full name, and OK / DANGLING status
  4. Prints a summary: total dimension count, dangling count, and a list of all dangling dimensions

When to use

Quick start

dotnet run --project ./sup_tools/swpilotcli-check-dangling-dims/scripts/CheckDanglingDims/CheckDanglingDims.csproj

Expected output:

Active document: AA-NDE-R.SLDDRW
==============================================
工程圖: AA-NDE-R.SLDDRW
==============================================
正在檢查 Dangling Dimensions(懸空尺寸)...

  [v] [視圖] 前視圖       | 線性尺寸  | 25.000 mm      | D1@草圖1@AA-NDE-R        | OK
  [!] [視圖] 前視圖       | 直徑尺寸  | 10.000 mm      | D2@草圖2@AA-NDE-R        | *** DANGLING(懸空)***

==============================================
檢查完成!共 32 個尺寸,其中 3 個為懸空尺寸。

以下尺寸為 Dangling(懸空),需要修復:
  [!] [視圖] 前視圖 -> 直徑尺寸 | 值: 10.000 mm | 名稱: D2@草圖2@AA-NDE-R

Reference

See API_REFERENCE.md for return codes and output format.

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.