Page 1 of 1

Activating solidworks VSTA

Posted: Wed Nov 15, 2023 2:13 pm
by abghrnjd
Hi
I have installed Visual Studio before Solidworks
https://help.solidworks.com/2023/englis ... A_2015.htm
But it is not activated in Solidworks. I cant save a macro in *.vbproj format. How can I activate it?

Re: Activating solidworks VSTA

Posted: Wed Nov 15, 2023 2:19 pm
by SPerman
Did you see these notes?

Microsoft Visual Studio 2019 (Community, Professional, Premium or Enterprise version) must be installed in order to record, edit, or debug VB.NET and C# macros in SOLIDWORKS 2023 or later.


If you install a version of Microsoft Visual Studio that is later than 2015, you must ensure that a runtime version of Microsoft Visual Studio 2015 is also installed.

Re: Activating solidworks VSTA

Posted: Thu Nov 16, 2023 4:44 am
by abghrnjd
I have instslled visual studio 2022 and solidworks 2023.
I also install a module in this link
https://www.microsoft.com/en-us/downloa ... x?id=58317
What is missing?

Re: Activating solidworks VSTA

Posted: Thu Nov 16, 2023 7:24 am
by SPerman
If you install a version of Microsoft Visual Studio that is later than 2015, you must ensure that a runtime version of Microsoft Visual Studio 2015 is also installed.

The link you attached was for 2019. The help says you need 2015.
https://www.microsoft.com/en-us/downloa ... x?id=49031

Re: Activating solidworks VSTA

Posted: Thu Nov 16, 2023 2:26 pm
by abghrnjd
Thank You
I installed these:
1) https://www.microsoft.com/en-us/downloa ... x?id=49031
2) https://www.microsoft.com/en-us/downloa ... x?id=48145
VSTA Still is not activated! Is it too late becuase I have already install my solidworks or sth else?

Re: Activating solidworks VSTA

Posted: Tue Dec 19, 2023 4:44 am
by giakhanh
I also have this problem. Did you fix it yet?

Re: Activating solidworks VSTA

Posted: Tue Dec 19, 2023 9:21 am
by JSculley
giakhanh wrote: Tue Dec 19, 2023 4:44 am I also have this problem. Did you fix it yet?
Read this:

https://cadforum.net/viewtopic.php?t=1967

Basically, the SW macro functionality is hardwired to use a particular version of Visual Studio. For SW 2022, the required Visual Studio version was 2015. You cannot use a newer version. I haven't tested 2023 or 2024, but I would be surprised if SW changed anything about this.