Macro export PDF & DWG

Great it works!!!

Below is the result:

The last little detail:

Once the macro is launched, the PDF opens on the screen. There is no way to close it automatically.

As I want to run the macro in bulk (via the INTEGRATION utility), I wouldn't want to have 10 PDFs open on the screen.

2 Likes

Edit the line

swExportPDFData.ViewPdfAfterSaving = True

in

swExportPDFData.ViewPdfAfterSaving = False

:)

2 Likes

Thank you @Mad for this MACRO.

We have to ask @Clémentine to create a space for us to share MACROS:

Where else Maybe we should put them in the Tutorials?

I'd like to get into VBA too, what do you advise me?

 

 

Hello

There are developpez.org with a lot of data on vb/vba. For everything specific to Solidworks, you have to rely on the help of the API available online and from time to time the macro recorder to train yourself.

1 Like

Super nice MaD!

flegendre/ For the VBA from Solid http://help.solidworks.com/2017/English/api/sldworksapiprogguide/Welcome.htm

Otherwise indeed do not hesitate to search just with the term vba because it has a lot of examples with Excel

Otherwise the one with whom I learned all the basics of Web programming and other the SiteDuZero aka Openclassroom https://openclassrooms.com/old-courses-pdf in the archive there is a very good course on VB.net his teaches a lot of things

 

Otherwise as Cyril says.f  Macro recorder and research:)

 

A piece of advice is to take the time to comment on these codes, I know I don't do it enough and it's more complicated when you come back six months later on a macro that doesn't work anymore :/

 

Flegendre & MAX59 Do you have the same need? 

3 Likes

Not really a need but always good to take to learn ;-)

1 Like

@max59,

do you work at VISIATIV?

Are you a Solidworks consultant?

Yes after-sales ;-)

1 Like

In which region?

The great NORTH!

ba yes, I'm "stupid"  max59 !!!

Hi MAD, nice your macro exactly what I was looking for, on the other hand do you think you can add the choice of the recording destination?

Hello tuonoman,

You should be able to use it to modify the MaD macro to your liking.

Kind regards

1 Like