Beginner API

I'm reviving an old question:

 Is there any doc, sites or books to get started on programming on Solidworks (VBA preferably).

Apart from the AVENAO videos, the SW tutorials in English, I can't find much.

Any leads? (at worst in English)

Thank you

5 Likes

I'm interested in it too!!

1 Like

Hello

The solidworks forum contains quite a few examples and topics dealing with APIs (https://forum.solidworks.com/). After for the pure and hard vba the site developpez.net is very well done (https://vb.developpez.com/faq/).

The help of the API built into Solidworks is also useful and more up-to-date than the macro recorder which only does basic functions sequentially.

4 Likes

Here is one of the refs in the field

https://intl.target.com/p/automating-solidworks-2015-using-macros-paperback-mike-spens/-/A-17285049?disable_sapphire=true&

@+

2 Likes

the problem, your answers are in "English" (the book is in US, the forum is in US)

it's true that a good "pedagogical tutorial in French" would be easier to assimilate!

3 Likes

See also this link 

https://www.excel-pratique.com/fr/vba.php

@+ ;-)

2 Likes

Excellent!

1 Like

@ olivier42: API = Application Programing Interface so natively in English.

This is the lot of all development languages that are basically English-speaking (for loop, if condition...). Ok, we are in the week of the Francophonie but you shouldn't want to have everything translated into French.

You have to force yourself and learn a little English, it opens up horizons.

2 Likes

Hello

Here is the link to the SOLIDWORKS APIs online help. You will find plenty of examples of vba and VB.net APIs

http://help.solidworks.com/2017/english/api/sldworksapiprogguide/welcome.htm

With Chrome you can right-click\ translate into French it can help you

Philippe

 

2 Likes

Thank you, no worries!

With other web browsers you can also do right click translate

(I'm against Google and others, I don't use their software,... I prefer not to give them my internet audience anymore, I'm more of a Qwant and Ghostery person)

but it's really easier to have the basics of grammar/writing/methodology explained in French (while keeping the functions and code in English)

when one no longer has a sufficiently receptive mind as in the past..., to assimilate new things.

it won't prevent you from looking for information, more advanced concepts in English... or by creating new future questions on the Lynkoa forum!

;-)

Well, good idea, if I ever ask an API question, I'll do it in English! niark niark niark...

and if not, what does our "young Alien" think?!

3 Likes

I think that a few small tutorials or  a discussion group on APIs would be really welcome on Lynkoa; °)

 

3 Likes

Yes, good idea!

All you have to do is appoint an "API initiation teacher" and force him to do so...

Among the potential targets: GT22, Cyril.f, D.Roger, AC Cobra, and maybe others...

1 Like

@PL also

; °)

Hello

To get started in programming (not only Solidworks) and by staying on a "understandable" language easily and all this in french, I recommend the following books http://plasserre.developpez.com/cours/vb-net/ and user.oc-static.com/pdf/134798-visual-basic-net.pdf. It's Visual Basic dotnet and it allows you to understand the basics of programming. Then, to manage Solidworks, you need to get closer to the online help on Solidworks APIs, see http://help.solidworks.com/2017/english/api/sldworksapiprogguide/welcome.htm. The site given by GT22: https://www.excel-pratique.com/fr/vba.php allows you to stick to the VBA.

Now, I would tend to advise you to start directly with the C# language with the help of nico.pyright's excellent book https://data.brains-master.com/pdf/523498-apprenez-a-developper-en-c.pdf. For the IDE you can then take either the free version of Microsoft "Visual Studio Community" or the opensource version "Sharpdevelop" (read the terms of use carefully before making the choice) this will allow you to create independent programs allowing you to control Solidworks, EPdm but also Excel etc... It is in this programming language that the "SW 3D Configurator" that I put in the tutorials is written.

Kind regards

 

4 Likes

API = ?

EDI = ?

1 Like

Hello, I started looking at this, it's super interesting, I recommend!!!   https://data.brains-master.com/pdf/523498-apprenez-a-developper-en-c.pdf Thank you @d.roger

EDI: Electronic Data Interchange!

Good luck to all but frankly the link is very interesting!!

Have a good day everyone

 

Oops: EDI can mean many things...

2 Likes

API: Application programming interface, see https://fr.wikipedia.org/wiki/Interface_de_programmation : Classes, methods, and functions.

EDI: Integrated Development Environment, see https://fr.wikipedia.org/wiki/Environnement_de_d%C3%A9veloppement : tools or software that facilitate programming.

3 Likes