Activating solidworks VSTA

Programming and macros
abghrnjd
Posts: 6
Joined: Tue Feb 07, 2023 2:03 pm
Answers: 0
x 1
x 1

Activating solidworks VSTA

Unread post 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?
User avatar
SPerman
Posts: 2035
Joined: Wed Mar 17, 2021 4:24 pm
Answers: 14
x 2207
x 1860
Contact:

Re: Activating solidworks VSTA

Unread post 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.
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
abghrnjd
Posts: 6
Joined: Tue Feb 07, 2023 2:03 pm
Answers: 0
x 1
x 1

Re: Activating solidworks VSTA

Unread post 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?
User avatar
SPerman
Posts: 2035
Joined: Wed Mar 17, 2021 4:24 pm
Answers: 14
x 2207
x 1860
Contact:

Re: Activating solidworks VSTA

Unread post 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
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
abghrnjd
Posts: 6
Joined: Tue Feb 07, 2023 2:03 pm
Answers: 0
x 1
x 1

Re: Activating solidworks VSTA

Unread post 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?
giakhanh
Posts: 3
Joined: Wed Dec 13, 2023 4:29 am
Answers: 0
x 1

Re: Activating solidworks VSTA

Unread post by giakhanh »

I also have this problem. Did you fix it yet?
User avatar
JSculley
Posts: 638
Joined: Tue May 04, 2021 7:28 am
Answers: 55
x 9
x 868

Re: Activating solidworks VSTA

Unread post 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.
Post Reply