Create a Macro PDF_DXF_DWG

Hi all

First of all, you should know that I spent a few hours on the Forum looking in vain, for a Macro corresponding to my expectations but I couldn't find anything. The field of the code is a bit abstract for me, having no skills in it and not appreciating all these beautiful lines! 

So here is my little problem, I would like to have a Macro that can save the original Plan in PDF DXF and DWG, these files must be in another folder, so we would have to be able to go back at least 2 folders (no need to go back to the windows ^^ explorer). Another point that seems important to me, as in all plans I have several sheets, with the macros I was able to test, this one saves each sheet separately, I would like this one to be compiled (the 3 sheets in the same PDF, same for the DXF and DWG).

There you go, thank you in advance for any answers!  

Hello

Here is a macro made by our friend  @d.Roger that should suit you.

may the force be with you.

https://www.lynkoa.com/forum/solidworks/enregistrer-sous-pdf-avec-choix-du-dossier?page=0#answer-908191

 

4 Likes

Thank you Obi Wan,

Unfortunately I'm afraid that the dark side will take hold of me, the macro corresponds to my expectations but this one creates pdfs for each sheet according to the plan! Whereas I want everything in one PDF! 

Hello

Try this macro version.

Kind regards


macro_pdf-dwg_enregistrer_sous-3.swp
1 Like

Thanks again d.roger however I still have some worries:

-For PDFs it's good.

-For the dwg "execution error '13'" I don't know what it corresponds to despite my research :/

Another point of the moment the macro doesn't ask me to record in Dxf? Maybe due to the previous bug. Is it possible to go back only one file, knowing that the dxf/dwg/pdf is saved in the same file (per case) no need to ask every time but I may be asking a little too much! In any case, thank you, I'll try to solve the problem by myself on my side, even if it's a waste of time! ^_^

Thank you again!

Try with this version of the blow ... I left the choice of the folder but going up a single floor and the 3 formats are saved in the same folder.

Kind regards


macro_pdf-dwg-dxf_enregistrer_sous.swp
2 Likes

Hello

Thanks again for your patience, it works perfectly! :) Thank you very much, have a good day and have a good start to the week!

Kind regards.

Hi all

Here is a very useful macro to make cascading recordings of mep and part in dxf dwg pdf step... Just select the directory, the macro opens the files one after the other by saving them in the current directory. I thank the support who updated it to be able to use it under W10.

Kind regards


es_dxf_pdf_w10.swp