I would like to train at VBA, I had already looked but due to lack of time I had not pushed the subject. Do you have any advice? Website, book, and or learning method? We talk about VBA, but what would be the languages we should be interested in? I know that some people here have mastered the subject. Thank you in advance for your feedback
Unless you do specialized training, you usually learn the " Visual Basic " on the job... Some sites can give you ideas for work such as:
Not to mention the Mycad forum... and:
Nowadays, AIs can also help you interpret and comment on codes gleaned from the internet (or your own codes), which remains a significant added value. However, and even if AIs are making incredible progress, I advise against their use in the context of learning. I believe that it is much more comfortable and educational to be able to read and interpret a code than to use it without knowing what it actually does.
in terms of " language ", what is called " VBA " is often a misnomer to talk about everything that includes " Macro ". " VBA " (visual basic Appication) is an extension of " VB " (visual Basic) and is most often associated with Excel/word/... and, for Solidworks, it will be necessary to associate it with the internal tools (generally called " references " or " libraries ") of this software: the (API=> Application Programming Interface).
And finally: Don't start programming without a clear objective, first define your requests clearly and establish a simplified action plan before laying down the first line of code will greatly help in its development.
I started on a few random gleaning sites. I also use AI on occasion. But I also want to understand what I'm reading, and make sure I'm using a solid method.
Developpez.net is one of the sites that explains the different languages well and allows you to progress quickly (in my opinion). I used this site for Excel/Word macros and then the SW API help for the specific
Hello, In phase and above all there are moments when AI takes out functions that do not exist. If you don't know it, you can go around in circles for a long time.
And starting with simple things (preferably in Excel) to learn the different vba functions and then once well assimilated moving to solidworks or the multitude of objects makes the thing a little more complex! But nothing impossible 4-5 years ago I didn't know anything about vba, it's thanks to this forum and especially the community that I learned everything about this programming language. Now with AI it can actually help, on the other hand you need a very solid base to correct the errors that come out to us far too often! (Function . Net transformed into vba when not...)
Edit: Very good summary of the sites that have helped me to progress in this area, @Maclane !
@sbadenis Yes, you have a solid basis for correcting any errors in AI or support. And also be able to adapt macros gleaned from all over the world to these needs
Feel free to explore the resources (link below) I’ve gathered for learning/mastering SolidWorks API, which include both free and paid options. The list contains videos, step-by-step tutorials, and books.
Thank @Deepak_Gupta you for your feedback.
I have taken note of your links. My approach involves learning VBA so that I can adapt macros I have downloaded, and thereby understand them.
If the goal is exclusively Solidworks, there are 3 languages: VBA, VbNet and C#. All are languages developed by Microsoft, VbNet is the Virtual Basic language using the .Net framework, VBA is its derivative created for the Office suite and C# is the latest of the family, the most recent. To learn there is the Dyma site, paid but very well done (but not sure if there are VBA courses though). Openclassrooms is good too (free). By searching a little you will find plenty of sites for learning VBA. After the tastes, the colors but I have a preference for C#, it's the latest and it's kept up to date regularly by Microsoft (even if the evolution of the language takes a few years to arrive in the SLW API). And above all, it's really object-oriented and allows you to do very nice things in macros without tearing your hair out
It's noted, I'll look into the question soon. And take the elements you proposed to me and guide my choice certainly towards VBA to start with and rub shoulders with another certainly C# which seems promising to me according to your explanations.