Macro 2.0

Good evening everyone,

Being a bit curious and very beginner.

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)

 

Regards nicolas

 

1 Like

Hello

 

You will find what you are looking for here:

 

 

http://www.leguide3d.com/profiles/blogs/api-solidworks-tutoriel-cr-ation-cylindre

 

http://www.leguide3d.com/profiles/blogs/api-solidworks-boucle-conditionnelle-partie-1-condition-if

 

http://www.leguide3d.com/profiles/blogs/api-solidworks-traversal-liste-des-pi-ces-soud-es

 

http://www.leguide3d.com/profiles/blogs/macro-unlockrefs-comment-deverrouiller-en-un-clic-l-ensemble-des-

 

http://www.leguide3d.com/profiles/blogs/macro-bounding-box-comment-obtenir-le-volume-englobant-de-votre-p

 

http://www.leguide3d.com/profiles/blogs/macro-centre-de-gravit-dynamique

 

http://www.leguide3d.com/profiles/blogs/api-solidworks-macro-enregistrement-optimis

 

 

And so on and on and so on =D

 

Good luck!

4 Likes

http://youtu.be/q87EsY5ltpE

2 Likes

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:

http://www.leguide3d.com/ (AVENAO)

http://www.forum-cao.fr/ (CADWARE)

 

Yours sincerely

 

Alan

3 Likes

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

3 Likes