Swpilotcli batch xt to step

From arthurle3210/SwpilotCLI · View interactive version

Swpilotcli batch xt to step is an AI agent skill from the GitHub repository arthurle3210/SwpilotCLI. Batch convert Parasolid `.x_t` and `.xt` files in a specified folder to STEP `.step` files in the same folder. Scans the folder root only, creates same-name `.step` outputs, suppresses template-selection prompts by forcing default part templates, and closes each temporary import document after expor

How to use this skill

Skill file

SolidWorks Batch XT to STEP

Batch convert Parasolid .x_t and .xt files in a specified folder to STEP .step files in the same folder.

Prerequisites

What this Skill does

  1. Validates the target folder path
  2. Scans the folder root for .x_t and .xt files only
  3. Forces SolidWorks to use default templates and disables import diagnostics prompts
  4. Creates a temporary part document from the default part template
  5. Imports each XT file using InsertImportedFeature
  6. Exports each imported model to same-name .step
  7. Closes the temporary import document after each file
  8. Prints per-file status and a final summary

When to use

Quick start

dotnet run --project ./sup_tools/swpilotcli-batch-xt-to-step/scripts/BatchXtToStep/BatchXtToStep.csproj -- "C:\path\to\folder"

Expected output:

Default part template: C:\Templates\Part.prtdot
Folder: C:\Parts\xt
Found: 3 file(s)

Input:  C:\Parts\xt\PartA.x_t
Output: C:\Parts\xt\PartA.step
Status: OK

Summary: success=3, failed=0, total=3

Examples

Convert one folder in place

User: 幫我把這個資料夾裡的 xt 都轉成 step
Claude: I'll run the batch XT-to-STEP tool on that folder and write the STEP files next to the XT files.

Reference

See API_REFERENCE.md for arguments, output, and return codes.

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.