Hi @ ludorinox
Look at this link
http://forum.solidagora.com/macro-api-solidworks-enregistrer-pdf-dxf-x-t101.html
@+ ;-)
Hello
We do have a utility that does exactly what you want, and more!
I invite you to read the description of the tools in the myCADtools suite. These tools are fully integrated into the SolidWorks interface and provide real added value. Download the presentation here.
Kind regards
Hello
I don't know where you are in the development of your macro, but I made one of the same style:
To retrieve the "code" property (for us it is in 3D), and you are in 2D, you need to activate the 3D file as follows:
Set swDraw = swModel
Set swView = swDraw.GetFirstView
Set swView = swView.GetNextView
Set swRefDoc = swView.ReferencedDocument ' Activates the 3D model in plan, we can then retrieve the custom properties of it
CODE = swRefDoc.GetCustomInfoValue("", "code") 'Retrieves the 'code' property of the 3D
Hello
The Batch Converter utility does just that.
It's available for download I think
http://www.lynkoa.com/store/fr/tools-et-macros/utilitaires/utilitaire-batchconverter.html
Have a nice day
Thank you all for your answers,
I know Batch Converter and use it for multiple conversions.
Thank you Lucas for this info, I'll try to get into the code.
A+
We also have BatchConverter, but we use this macro as soon as we put a plan in the vault: a PDF and a DWG are created and placed in a special folder on the network so that they can be accessed directly for the other services. Whereas with Batch converter, it's not so convenient.
If you have any other questions about the macro you're doing, don't hesitate to open another question, I can probably help you!
And thank you for designating the best answer to it.
Have a nice day.