xCAD.NET
Free and open-source .NET framework for building CAD add-ins, property manager pages, custom features and stand-alone applications
xCAD.NET is a framework for building applications for SOLIDWORKS and other CAD systems in .NET (C# and VB.NET). It removes the boilerplate code required by the native CAD APIs and lets developers concentrate on the business logic of their add-ins and stand-alone applications.
The framework is designed with SOLID principles in mind, provides type safety and a single point of maintenance, which makes the applications easier to scale and maintain. xCAD.NET is free and open-source under the MIT license.
Key features
Add-ins and commands
Create the add-in skeleton, commands, menus and toolbars with a few lines of code. Subscribe to events and access the document data
Property Manager Pages
Build native property manager pages with data binding. Text boxes, number boxes, combo boxes, selection boxes, options, buttons, bitmaps, tabs, groups and custom WPF or Windows Forms controls
Custom features
Develop fully parametric macro features with regeneration, edit definition, parameters, selections, edit bodies and dimensions
Panels
Host your own user interface in the Feature Manager tab, model view tab, task pane or popup windows
Documents and data storage
Manage documents, handle common events and store third-party data within the CAD files using streams and storages
CAD-agnostic API
Write the code once against the abstraction layer and still access the native API objects (such as ISldWorks and IModelDoc2) when needed
Project templates
Start new projects in seconds with templates for Visual Studio and VS Code
Deployment
Target multiple CAD versions, localize your application and create installers
Supported CAD systems
- SOLIDWORKS
- SOLIDWORKS Document Manager
- Autodesk Inventor
Getting started
xCAD.NET is distributed as NuGet packages. Install the package for your CAD system into your .NET project:
| Package | Description |
|---|---|
| Xarial.XCad.SolidWorks | SOLIDWORKS add-ins and stand-alone applications |
| Xarial.XCad.SwDocumentManager | Reading and writing SOLIDWORKS files without SOLIDWORKS |
| Xarial.XCad.Inventor | Autodesk Inventor applications |
| Xarial.XCad.Templates | Project templates for Visual Studio and VS Code |
Explore the examples on GitHub to see xCAD.NET in action.