solidworks-app

Generate a C# WPF MVVM companion app automating SolidWorks 2021 via COM Interop.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Ascenseurs-Menetrey-SA/amsa-claude-skills --skill solidworks-app
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solidworks-app
Source: https://github.com/Ascenseurs-Menetrey-SA/amsa-claude-skills/tree/main/solidworks-app
Command: npx skills add https://github.com/Ascenseurs-Menetrey-SA/amsa-claude-skills --skill solidworks-app

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill removes the repetitive, error-prone setup of a C# WPF application that automates SolidWorks 2021 (COM interop) and optionally manages files in PDM Professional, so you can focus on business features instead of boilerplate and wiring.

Core Features & Use Cases

  • .NET Framework WPF scaffolding for SolidWorks 2021: creates a production-ready MVVM architecture using CommunityToolkit.Mvvm and DI, explicitly configured for COM compatibility (x64, .NET Framework 4.7.2/4.8).
  • COM interop patterns that avoid common SolidWorks crashes: enforces STA threading, safe ActiveDoc checks, explicit casts/enums, export-ready services, and disciplined COM release rules.
  • Optional PDM Professional integration: when PDM is required, generates a PDM service layer (vault connection, file operations like check-out/check-in/get-latest, variables, and batch workflows).

Quick Start

Run solidworks-app with the instruction to scaffold an export-focused SolidWorks 2021 companion app with PDM integration enabled, using MVVM and DI.

Frequently Asked Questions about solidworks-app

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a WPF application that automates SolidWorks 2021 via COM Interop?

You can scaffold a C# WPF MVVM companion application that automates SolidWorks 2021 via COM Interop using strict MVVM patterns. It generates production-ready architecture configured for COM compatibility, including STA threading and safe COM release rules.

Does SolidWorks automation with WPF require specific .NET Framework configurations?

Yes, SolidWorks WPF automation requires .NET Framework 4.7.2 or 4.8 x64 configurations. The generated companion app enforces STA threading, safe ActiveDoc checks, and explicit casts to ensure stable COM interop execution and prevent common SolidWorks crashes.

Can I integrate PDM Professional check-out and check-in workflows into my WPF app?

Yes, you can integrate PDM Professional workflows into your WPF app. The scaffold generates a PDM service layer handling vault connections, file operations like check-out/check-in, get-latest, variable management, and batch workflows when PDM integration is required.

What is the best way to structure a SolidWorks automation app using MVVM and Dependency Injection?

The best way to structure a SolidWorks automation app is using CommunityToolkit.Mvvm and Microsoft.Extensions.DependencyInjection. This approach generates strict MVVM architecture, enabling feature addition for export tasks, custom property handling, and BOM-style data views.

Why does SolidWorks crash during COM Interop automation and how can I avoid it?

SolidWorks crashes during COM Interop often result from threading or release issues. The generated WPF companion app avoids these crashes by enforcing STA COM execution, safe ActiveDoc checks, explicit casts, and disciplined COM release error handling rules.

Do I need to manually configure STA threading for SolidWorks COM Interop in WPF?

No, you do not need to manually configure STA threading. The generated WPF MVVM companion app explicitly enforces STA COM execution and handles safe COM release and error handling automatically to ensure stable SolidWorks 2021 automation.