Hello
After several searches I didn't find what I want.
I'm looking for a macro to export my DWG sheets for laser cutting.
I would like a macro from the SLDPRT that can do the equivalent of:
- Registered as
- Type ==> DWG
-record
- OK green
- record
The file should be saved in the source folder of my part.
With its file name identical to the SLDPRT.
Can you help me?
Kind regards
Looking in English I just found this which seems to fit.
http://help.solidworks.com/2018/English/api/sldworksapi/Export_Part_To_DWG_Example_VB.htm?verRedirect=1
Hello
I have this in my archives but not test I let you discover, keep us informed.
may the force be with you.
export-tole-dwg-dxf.zip
Hello
I tried the proposed macro.
I can see that something is happening but impossible to find the file in my source folder or on my C.
I tried to understand the macro but I admit to floundering in understanding it.
Can you help me?
Kind regards
In the 1st I see:
c:\temp.
You will surely find your files in c:\Temp
If functional, all you have to do is modify this macro so that it saves you in your file in the same place as your part.
Don't forget to specify which of the 2 macros!
Edit: after trying what I wrote above is not true, it saves the dwg plans in the same place as the original plan, the macro is functional under SW2018
Hello
By restarting my pc it worked.
For information I have a windows update that disrupts access to my network drives.
I think that was the problem.
Thanks for the troubleshooting.