According to my research, and from 2021 the vsta 3.0 has been integrated by default in sw, (there is no longer the system option uncheck activate vsta 3.0 ) to work with previous versions, on the other hand in the sw help the vsta macros are still present for these sw versions! , My question is how to make them work?, I found an adding technique but seems too complex to me to turn a simple macro button.!? Thank you for your help.
Yes, that's it, you absolutely have to install visual studio (the latest version compatible with your solidworks- imperatively) For me visual studio 2015 (Sw2020)
Hello @sbadenis This explains the fact that it didn't work with my vsta 2010, unfortunately it won't solve my problem, I don't see how to install such a large environment for each workstation
@Lynkoa15 , you can install Visual Studio on one workstation (yours), compile your visual studio code and then no need for visual studio on the other workstation you launch a compiled DLL. From memory that's how it works, without having to install Visual studio on each workstation. Edit: see this post where @remrem explained this to me:
That's the problem sbadenis, to assign the compilations, you have to have the vsta extensions (or the addins, I think), it was possible for the previous versions but doesn't seem anymore (I tried to compile in. Exe then launch the program via. Swp, it works but the execution time is not possible,)
I haven't been able to find the reference but it's from 2021 that it's no longer possible (in any case I appreciate the help and the sbadenis trials, thank you)
So since the 2021 no longer to checkmark installed by default? And you can't find the dlls in the choice of macro, that's right. No one else with 2021 or 2022 version to test?
At home in 2022 version on my colleagues' workstations where Visual Studio 2015 is not installed, they can edit VBA (.swp) only but can run .dll so now I'm drying. Reinstalling SolidWorks? Ask for technical support?
We're talking about only running the .dll and not modifying macros, do we agree?
Hello @tous @Konti, I have always installed myself and carefully, it can happen to miss something but I can't find it. I tried to follow @sbadenis's advice by installing a version of vsta (2022 with runtime for a test), and there the extension reappears so I guess it's not a problem with my installation, According to sw's previous reference
There must be a vsta option in the sw 2022 distribution, I don't know why this is not the case for my distribution, but if you could confirm it would be nice of you.
Hello I've had this type of problem before. It is mentioned in the help that if you install Visual Studio after SW, this may be a problem. From memory, I had solved the problem by repairing the VS installation. Have a nice day.