sw-api-patterns
CommunitySolidWorks API patterns for robust C# coding.
Authorttsmith21
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This collection provides reusable patterns and templates for accessing SolidWorks APIs from C#, helping developers build consistent, reliable add-ins.
Core Features & Use Cases
- Getting Active Document: pattern to safely obtain the current model.
- Traversing Features and Components: guidance to enumerate features, bodies, faces, and components.
- Safe Casting and Property Handling: utilities for robust type casts and property access.
- Assembly Traversal and Component Management: patterns for dealing with components and model docs.
- Error Handling and Debugging: recommended patterns to catch and report API errors.
- Common Gotchas: known pitfalls with SW API calls and how to avoid them.
Quick Start
Review and apply these patterns to implement SolidWorks API calls in your C# add-in development.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: sw-api-patterns Download link: https://github.com/ttsmith21/swcsharpaddin/archive/main.zip#sw-api-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.