Skip to content

Collection of SOLIDWORKS API examples (add-ins and stand-alone applications) built using xCAD.NET framework

Notifications You must be signed in to change notification settings

xarial/xcad-examples

Repository files navigation

Box Macro Feature

This example demonstrates how to create a parametric box element in SOLIDWORKS using macro feature.

C#

Events Handler

Demonstration of handling SOLIDWORKS events using Document Manager service

VB.NET

Hosting Forms and WPF Controls

This example demonstrates how to customize various panels in SOLIDWORKS, such as Task Pane, Model View Manager Tab, Feature Manager Tab, Property Manager Page by adding custom WPF or WinForms controls.

VB.NET

Issues Manager

SOLIDWORKS Issues management example. Demonstration of using 3rd party storage to store custom information directly in document streams.

C#

Save As File Name Assigner

Example demonstrates how to dynamically assign the name for the Save As file in SOLIDWORKS.

C#

SQL Entity Framework

Example demonstrates how to access SQL data using Entity Framework in .NET Core SOLIDWORKS add-in

C#

Toggle Command

Example demonstrates how to create a toggle button in the SOLIDWORKS toolbar

C#

Top Ten List 2020

Implementation of 3 enhancements from the SOLIDWORKS Top Ten List 2020

C#

VB.NET

Model Generator Console

.NET Core console application to generate SOLIDWORKS model based on template and input parameters

C#

Commands Manager With Custom Icons

Example demonstrates how different size icons rendered in the menus and toolbars

VB.NET

C#

Weldment Profiles Selector

Example demonstrates how to create dynamic cascading combo boxes in the Property Manager Page which select weldment profiles (standard, type and size)

C#

Toggle Bitmap Buttons

Example demonstrates how to create Property Manager Page with checkable bitmap buttons

C#

Sweep Sketch

Example demonstrates how to insert macro feature to create solid sweep from input sketch

C#

Property Manager Page

Example demonstrates main features of building Property Manager Pages with xCAD.NET

C#

Properties Reader

Example demonstrates how to create WPF application to load custom properties for all components of the assembly using SOLIDWORKS API and SOLIDWORKS Document manager API with the same code base

C#

Document Feature Manager Tabs

Example demonstrates how to attach feature manager tabs to all created documents

C#

Task Pane AddIn and MSI-Installers

Example demonstrates how to host WPF control in Task Pane and how to create MSI-installers for SOLIDWORKS add-in

C#

Dimension Watcher Macro Feature

Example demonstrates how to create macro feature without geometry with custom error messages

C#

.NET 6 SOLIDWORKS Add-In With Public API

This example demonstrates how to create SOLIDWORKS add-in using C# .NET 6 and expose a public API

C#