Enhanced IntelliSense and AI-Assisted Development for SolidWorks API
This project provides two comprehensive documentation packages for the SolidWorks API:
- XMLDoc Package - Visual Studio IntelliSense support with tooltips, parameter info, and examples
- LLM Documentation Package - AI-optimized markdown documentation for use with Claude, ChatGPT, and other LLMs
Use with Claude, ChatGPT, Cursor, or other AI coding assistants:
-
Download the latest LLM docs package from releases
- File:
SolidWorks.LLM.Docs.v{version}.zip
- File:
-
Extract the ZIP file to your preferred location
-
Use with your AI assistant:
- Claude Code: Point to the extracted folder as context
- Cursor: Add to workspace and use
@docsto reference - ChatGPT: Upload relevant markdown files for context
- Manual search: Use grep/ripgrep to find specific APIs
Get IntelliSense tooltips and documentation in Visual Studio:
-
Download the latest XMLDoc package from releases
- File:
SolidWorks.Interop.xmldoc.v{version}.zip
- File:
-
Extract the ZIP file to get 10 XML files:
SolidWorks.Interop.sldworks.xml SolidWorks.Interop.swconst.xml SolidWorks.Interop.swpublished.xml SolidWorks.Interop.swdocumentmgr.xml SolidWorks.Interop.swmotionstudy.xml SolidWorks.Interop.cosworks.xml SolidWorks.Interop.swcommands.xml SolidWorks.Interop.SwSelectionManager.xml SolidWorks.Interop.StructuralAnalysisDoc.xml SolidWorks.Interop.SWRoutingLib.xml -
Copy the XML files to your SolidWorks SDK DLL location:
- SOLIDWORKS 3DEXPERIENCE:
C:\Program Files\Dassault Systemes\SOLIDWORKS 3DEXPERIENCE\SOLIDWORKS\api\redist - Standard SOLIDWORKS:
C:\Program Files\SOLIDWORKS Corp\SOLIDWORKS\api\redist
- SOLIDWORKS 3DEXPERIENCE:
-
Restart Visual Studio
-
Enjoy! Hover over any SolidWorks API type or method to see full documentation
Contains 10 XML files providing IntelliSense documentation for all SolidWorks API assemblies:
- Comprehensive coverage: 2,518 types, 11,523 members
- Full descriptions: Type and member documentation
- Parameter details: Complete parameter information
- Return values: Detailed return type documentation
- Code examples: 3,708+ examples (VBA, C#, VB.NET, C++)
- Remarks: Usage notes and best practices
Contains 26,902 markdown files optimized for AI consumption:
π SolidWorks.LLM.Docs/
βββ π README.md # Guide for using with LLMs
β
βββ π types/ # API Types (1,563 types)
β βββ π IModelDoc2/ # One folder per type
β β βββ _overview.md # Type description, remarks, counts
β β βββ CreateArc.md # Individual method documentation
β β βββ CreateArc2.md
β β βββ Save.md
β β βββ GetPathName.md # Individual property documentation
β β βββ ... (721 members)
β βββ π ISldWorks/
β β βββ _overview.md
β β βββ ... (methods and properties)
β βββ ... (1,563 type folders)
β
βββ π enums/ # Enumerations (955 enums)
β βββ π swDocumentTypes_e/
β β βββ _overview.md
β β βββ swDocPART.md # Part document type
β β βββ swDocASSEMBLY.md # Assembly document type
β β βββ swDocDRAWING.md # Drawing document type
β βββ ... (955 enum folders)
β
βββ π index/ # Navigation & Discovery
β βββ by_category.md # Types by functional category
β βββ by_assembly.md # Types by .NET assembly
β βββ statistics.md # Quick stats and largest types
β
βββ π examples/ # Code Examples (3,708 examples)
β βββ Create_Advanced_Hole_Example_CSharp.md
β βββ Create_Assembly_Example_VBA.md
β βββ ... (all examples, flat structure)
β
βββ π docs/ # Programming Guide (125 pages)
βββ Overview.md
βββ SOLIDWORKS Partner Program.md
βββ π Programming with the SOLIDWORKS API/
βββ Getting Started.md
βββ Object Model.md
βββ ... (hierarchical structure)
- File-per-member: Each method, property, and enum gets its own file (easy to grep/search)
- YAML frontmatter: Machine-readable metadata in every file
- Simplified links:
[[IModelDoc2]]instead of XML-style cross-references - Flat structure:
types/TypeName/instead of deep nesting - Index files: Browse by category or assembly
- Full examples: Complete code samples with syntax highlighting
- Programming guide: Comprehensive tutorials and best practices
# Add to your project context
claude --context /path/to/SolidWorks.LLM.Docs
# Then ask questions
"How do I create an arc in a SolidWorks sketch?"
"Show me examples of working with assemblies"- Add the LLM docs folder to your workspace
- Use
@docsto reference documentation:@docs How do I save a SolidWorks document?
# Find all CreateArc methods
grep -r "CreateArc" types/IModelDoc2/
# Find methods in a specific category
grep -l "category: Assembly Interfaces" types/*/_.overview.md
# Search examples for specific topics
grep -r "advanced hole" examples/
# Find all methods that return a specific type
grep -r "Returns.*ISketchArc" types/Once installed, you'll see documentation when:
-
Hovering over types and members
ISldWorks swApp = ...; // Hover shows: "Allows access to top-level SolidWorks functionality"
-
Writing code with IntelliSense
IModelDoc2 model = swApp. // IntelliSense shows all methods with descriptions
-
Viewing parameters
model.CreateArc2( // Parameter tooltip shows each parameter's purpose
Problem: "I want to create a hole feature, but don't know which API to use"
Solution:
- Check
index/by_category.mdfor "Feature Interfaces" - Look for hole-related types
- Read the
_overview.mdfor each type - Check
examples/for hole creation examples
Problem: "What does the Options parameter in SaveAs3 mean?"
Solution:
- Open
types/IModelDoc2/SaveAs3.md - Read the parameter descriptions
- Check remarks for usage notes
- Look for examples showing
SaveAs3usage
Problem: "How do I properly initialize a SolidWorks connection?"
Solution:
- Search
examples/for initialization patterns - Look at multiple language examples (C#, VBA, VB.NET)
- Check
docs/Getting Started.mdfor tutorials
-
Types: 2,518 total
- With descriptions: ~1,568 (93%)
- With examples: ~561 (33%)
- With remarks: ~455 (27%)
-
Members: 11,523 total
- Methods with parameters: ~8,000+
- Properties with descriptions: ~3,000+
- All with return value documentation
-
Examples: 3,708 total
- C#: ~1,100
- VBA: ~1,000
- VB.NET: ~900
- C++: ~700
-
Programming Guide: 125 pages
- Tutorials and walkthroughs
- Best practices
- Architecture documentation
Want to regenerate the documentation yourself or contribute improvements?
See DEVELOPING.md for:
- Complete pipeline architecture (13 phases)
- Setup and installation instructions
- Running the crawlers and extractors
- Testing and validation
- Contributing guidelines
IMPORTANT: This tool is for personal, educational, and fair use only.
- You may: Use these packages for personal development with SolidWorks API
- You may: Share these generated packages (XMLDoc and LLM docs)
- You must not: Use for commercial redistribution
- You must not: Claim ownership of SolidWorks documentation
The SolidWorks API documentation content is copyrighted by Dassault Systèmes SolidWorks Corporation. These packages are generated under fair use for educational purposes.
- Pipeline code: MIT License (see LICENSE file)
- Documentation content: Copyright Dassault Systèmes SolidWorks Corporation
Contributions welcome! See DEVELOPING.md for:
- How to set up the development environment
- Running the pipeline
- Adding new features
- Submitting improvements
- SolidWorks API Help: https://help.solidworks.com/2026/english/api/
- Issues & Feedback: https://github.com/pedropaulovc/offline-solidworks-api-docs/issues
- Developer Guide: DEVELOPING.md
This project makes SolidWorks API development easier by providing:
- Offline documentation access
- Enhanced IDE integration
- AI-assisted development capabilities
- Searchable, well-organized reference materials
Built with respect for Dassault Systèmes' documentation and the developer community.
Version: Check releases for latest version Last Updated: 2025-11-23