Swpilotcli replace note text

From arthurle3210/SwpilotCLI · View interactive version

Swpilotcli replace note text is an AI agent skill from the GitHub repository arthurle3210/SwpilotCLI. Find and replace text inside all Note annotations in the active SolidWorks drawing. Requires two arguments: the text to find and the replacement text. Scans every sheet and view, replaces all matching notes, and reports how many were changed. Use as an atomic building block in LLM-orchestrated batch

How to use this skill

Skill file

swpilotcli-replace-note-text

Prerequisites

What this Skill does

Iterates over all sheets → views → annotations in the active drawing.

For every Note whose text contains <find>, replaces all occurrences with <replace>.

Prints each substitution and a final count summary.

When to use

Use as a single-purpose step in LLM-orchestrated batch workflows:

swpilotcli-open-doc <file>
swpilotcli-replace-note-text "<find>" "<replace>"
swpilotcli-save-drawing-as-copy <src> <dst>   ← only if replacements > 0
swpilotcli-close-doc nosave

Do NOT use when you need to modify dimensions, BOM tables, or other annotation types — this tool only touches Notes.

Quick start

dotnet run --project ./sup_tools/swpilotcli-replace-note-text/scripts/ReplaceNoteText/ReplaceNoteText.csproj -- "頂峰" "廠商"

Examples

# Replace vendor name in notes
dotnet run --project ... -- "頂峰" "廠商"

# Replace revision marker
dotnet run --project ... -- "REV-A" "REV-B"

Reference

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.