SWX and API

What is the computer program most commonly used in API for SWX? Because I found API in SWX help file is written in VBA. I do not know VBA but I am learning C#.  

SolidworksApi/macros
Answers 3
FL
FL 2021-04-09 Best Answer

The macro in SW is VBA - Visual Basic for Application.

There is a way to use C# macro.  Need to do some research on that.

Then there is Add-ins.  They can be written with "anything" in Visual Studio.

The API SDK has example for VB.Net and C#.

 

 

 

AT
AT 2021-04-09

Hi Maha,

Take a look at this comparison table: Getting started: Developing applications with SOLIDWORKS API 

Thanks,

Artem

MS
MS 2021-04-09

Yes Maha, you can use C# for macros.  Make sure VSTA is installed as a component of your SOLIDWORKS installation.  Then when you record and save, or create a new macro, you will have the option for SW VSTA C# Macro (.csproj).