Having some time to discover my favorite 3d software, solidworks
I would like not to go deeper but to discover what a macro is
So I already know that it's to repeat functions
(but for parts, assembly,?)
I also know that when I open a macro download on Lynkoa a macro interface opens (I'd like information on that) and when I try to launch it I don't see any difference
I would also like more information on what the VBA language is
We welcome any tutorials or information for beginners explaining:
-what is it used for
-how to use it
-in what type of cases are it used
In short, I just want to learn
PS: I specify that I have a 2013/2014 student version of solidworks (in case I have blocked functions)
The VBA (Visual Basic for Application) is based on Microsoft's Visual Basic.
Visual Basic is a 3rd generation programming language where, unlike the old programming languages, all the graphical aspect is handled by Windows. The notions of window, text box, image box, checkboxes, options, drop-down menu;,... are directly managed by Drag & Drop in the graphics window. The language is very close to the Basic 2nd generation.
VBA is a language adapted from VB to Pack Office (Word, Excel,...) to execute macros on this type of document.
The VBA has been adapted to SolidWorks to run macros (small programs) to automate certain repetitive or programmable tasks (some tools are directly modeled and drawn automatically just by entering some data into a table).
There are 2 tutorials in Solidworks, but in English.
There are many things about this in competing forums:
You can make macros for parts, configurations, assemblies, drawings or even combine everything.
I have in mind a tube bending tool where only the jaws and the central roller that were mounted on a Picot bending machine were different from one tool to another. Each tool only needed the tube diameter and the bending diameter. Everything else was the same. So once a small program was put together, the designer only entered the 2 diameters in the form and everything was done until the drawing.
Given that this is the 2nd part of the same question, wait for @Benoit answer to give him the points