ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
CCChris Chaulk28/07/2021

This page says I should be able to record macros in VSTA C# or VSTA VB, but no matter what I do I get only VBA as an option.

https://help.solidworks.com/2019/english/api/sldworksapiprogguide/GettingStarted/Record_Solidworks_Macro.htm 

1. Click Record\Pause Macro  on the Macro toolbar, or click Tools, Macro, Record.

4. In the dialog, type a name for the macro in File name, select the type of macro in Save as type, and click Save.

* If you selected SW VSTA C# Macro (*.csproj), then a C# project is created. Building or debugging the project creates an executable file with an filename extension of .dll.


So it appears to be possible, but how does this happen.  I have VSTA and Visual Studio installed via:

http://help.solidworks.com/2020/english/api/sldworksapiprogguide/GettingStarted/VSTA_2015.htm

I can create a new macro, but I cannot record a macro.


Is recording a macro to VSTA C# or VSTA VB possible?  Are there any examples?

I'd like a link because there are numerous posts on this site with vague answers.