XCAD.NET
XCAD.NET
Framework for .NET (C# and VB.NET) to create modern application for CAD systems (SOLIDWORKS)
Get technical support Access source code Explore code and application examples

Debugging SOLIDWORKS add-ins with xCAD.NET


SOLIDWORKS add-ins are in-process applications hosted within the sldworks.exe process.

When debugging SOLIDWORKS add-ins it is recommended to specify the full path to the SOLIDWORKS executable for the Start external program option in the project settings under the Debug tab.

Setting path to SOLIDWORKS as external program
Setting path to SOLIDWORKS as external program

In this case it is possible to launch SOLIDWORKS and attach to the process automatically directly form Visual Studio by calling Start command or clicking F5

To attach to the running SOLIDWORKS instance use the Debug->Attach To Process... command

Attach to running process
Attach to running process

and select SLDWORKS.exe process form the list

Attaching to SLDWORKS.exe process
Attaching to SLDWORKS.exe process

In addition, xCAD.NET framework allows to debug original source code directly from the nuge package via Source Link. See Debugging xCAD.NET Source Code article for more information of how to enable Source Link.


Powered by Docify